Simplify and speed up multiprocessing

This commit is contained in:
Anthony Sottile 2016-11-22 15:43:05 -08:00
parent 348722d77b
commit 109f5f8888
4 changed files with 64 additions and 105 deletions

View file

@ -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."""