Skip to content

Commit 20d939b

Browse files
committed
Back to development
1 parent 310746e commit 20d939b

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

pep8.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"""
4747
from __future__ import with_statement
4848

49-
__version__ = '1.5.3'
49+
__version__ = '1.5.4a0'
5050

5151
import os
5252
import sys
@@ -1348,17 +1348,13 @@ def check_logical(self):
13481348
for name, check, argument_names in self._logical_checks:
13491349
if self.verbose >= 4:
13501350
print(' ' + name)
1351-
for result in self.run_check(check, argument_names) or ():
1352-
(offset, text) = result
1353-
if isinstance(offset, tuple):
1354-
(li_number, li_offset) = offset
1355-
else:
1356-
for (token_offset, token) in mapping:
1351+
for offset, text in self.run_check(check, argument_names) or ():
1352+
if not isinstance(offset, tuple):
1353+
for token_offset, token in mapping:
13571354
if offset <= token_offset:
13581355
break
1359-
li_number = token[3][0]
1360-
li_offset = (token[3][1] + offset - token_offset)
1361-
self.report_error(li_number, li_offset, text, check)
1356+
offset = (token[3][0], token[3][1] + offset - token_offset)
1357+
self.report_error(offset[0], offset[1], text, check)
13621358
if self.logical_line:
13631359
self.previous_indent_level = self.indent_level
13641360
self.previous_logical = self.logical_line

0 commit comments

Comments
 (0)