mirror of
https://github.com/davidhalter/parso.git
synced 2026-03-01 21:07:28 +08:00
Don't use print if not necessary
This commit is contained in:
@@ -716,8 +716,8 @@ class PEP8Normalizer(ErrorFinder):
|
|||||||
for i, line in enumerate(leaf.value.splitlines()[1:]):
|
for i, line in enumerate(leaf.value.splitlines()[1:]):
|
||||||
indentation = re.match(r'[ \t]*', line).group(0)
|
indentation = re.match(r'[ \t]*', line).group(0)
|
||||||
start_pos = leaf.line + i, len(indentation)
|
start_pos = leaf.line + i, len(indentation)
|
||||||
print(start_pos)
|
|
||||||
# TODO check multiline indentation.
|
# TODO check multiline indentation.
|
||||||
|
start_pos
|
||||||
elif typ == 'endmarker':
|
elif typ == 'endmarker':
|
||||||
if self._newline_count >= 2:
|
if self._newline_count >= 2:
|
||||||
self.add_issue(leaf, 391, 'Blank line at end of file')
|
self.add_issue(leaf, 391, 'Blank line at end of file')
|
||||||
|
|||||||
Reference in New Issue
Block a user