summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-04-14 16:35:39 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-04-14 16:35:39 +0200
commit77bd8aef4ed98bb9f24bd9f6b02d60e1c8d0fcf3 (patch)
treedc93bcd2a00a0dffa9710685172aeac105be9707
parentb6da3926871b581d5ff2b5635777de71748ecb24 (diff)
downloadpep8-77bd8aef4ed98bb9f24bd9f6b02d60e1c8d0fcf3.tar.gz
Switch two lines
-rwxr-xr-xpep8.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pep8.py b/pep8.py
index fe679c9..31325ec 100755
--- a/pep8.py
+++ b/pep8.py
@@ -1267,8 +1267,8 @@ class Checker(object):
"""Get the next line from the input buffer."""
if self.line_number >= len(self.lines):
return ''
+ line = self.lines[self.line_number]
self.line_number += 1
- line = self.lines[self.line_number - 1]
if self.indent_char is None and line[:1] in WHITESPACE:
self.indent_char = line[0]
return line