summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-03-15 12:27:05 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2016-03-15 12:27:05 -0500
commit666e1c2b06151b7f6f2d290d82aa38b13bafb033 (patch)
treeaea198e45d30a9ddf4ca16d01eda6a8a0ca57535
parent19062c5e9c948fd7816561b8d6dd2f5c8b60a842 (diff)
downloadflake8-666e1c2b06151b7f6f2d290d82aa38b13bafb033.tar.gz
Ensure the logical line is tracked on the processor
-rw-r--r--flake8/processor.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/flake8/processor.py b/flake8/processor.py
index 9ad7751..d75256b 100644
--- a/flake8/processor.py
+++ b/flake8/processor.py
@@ -175,7 +175,8 @@ class FileProcessor(object):
def build_logical_line(self):
"""Build a logical line from the current tokens list."""
comments, logical, mapping_list = self.build_logical_line_tokens()
- return ''.join(comments), ''.join(logical), mapping_list
+ self.logical_line = ''.join(logical)
+ return ''.join(comments), self.logical_line, mapping_list
def split_line(self, token):
"""Split a physical line's line based on new-lines.