mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-18 02:16:03 +08:00
Small change.
This commit is contained in:
@@ -707,6 +707,9 @@ class FooRule(Rule):
|
|||||||
@PEP8NormalizerConfig.register_rule
|
@PEP8NormalizerConfig.register_rule
|
||||||
class BlankLineAtEnd(Rule):
|
class BlankLineAtEnd(Rule):
|
||||||
code = 392
|
code = 392
|
||||||
message = 'blank line at end of file'
|
message = 'Blank line at end of file'
|
||||||
|
|
||||||
leaf_event = ['endmarker']
|
leaf_event = ['endmarker']
|
||||||
|
|
||||||
|
def check(self, leaf):
|
||||||
|
return self._newline_count >= 2
|
||||||
|
|||||||
Reference in New Issue
Block a user