mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-28 23:23:20 +08:00
Small change.
This commit is contained in:
1 parent
4777eeb89f
commit
cdc2df7881
1 file changed
+4
-1
@@ -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