diff options
author | Ian Lee <IanLee1521@gmail.com> | 2015-02-07 16:53:23 -0800 |
---|---|---|
committer | Ian Lee <IanLee1521@gmail.com> | 2015-02-07 16:53:23 -0800 |
commit | c8e21b57496454e0552970f1b2468c2b58c4e718 (patch) | |
tree | f7a0a1ce4f57325bb374f6e313e81c3161e60f19 | |
parent | d8786cfb5141d1f5cc6afbf26e15ccc773e8934b (diff) | |
download | pep8-c8e21b57496454e0552970f1b2468c2b58c4e718.tar.gz |
Fixed #287 -- 'variable is referenced before assignment' error
Thanks to @dreadatour for the original pull request.
-rwxr-xr-x | pep8.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -435,6 +435,7 @@ def continued_indentation(logical_line, tokens, indent_level, hang_closing, indent_chances = {} last_indent = tokens[0][2] visual_indent = None + last_token_multiline = False # for each depth, memorize the visual indent column indent = [last_indent[1]] if verbose >= 3: @@ -978,6 +979,7 @@ def explicit_line_join(logical_line, tokens): """ prev_start = prev_end = parens = 0 comment = False + backslash = None for token_type, text, start, end, line in tokens: if token_type == tokenize.COMMENT: comment = True |