mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 05:26:53 +00:00
Simplify and speed up multiprocessing
This commit is contained in:
parent
348722d77b
commit
109f5f8888
4 changed files with 64 additions and 105 deletions
|
|
@ -367,6 +367,7 @@ def is_eol_token(token):
|
|||
"""Check if the token is an end-of-line token."""
|
||||
return token[0] in NEWLINE or token[4][token[3][1]:].lstrip() == '\\\n'
|
||||
|
||||
|
||||
if COMMENT_WITH_NL: # If on Python 2.6
|
||||
def is_eol_token(token, _is_eol_token=is_eol_token):
|
||||
"""Check if the token is an end-of-line token."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue