mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-23 11:32:25 +08:00
Try to add syntax errors to pep8 normalizing.
This commit is contained in:
@@ -7,6 +7,7 @@ class Normalizer(object):
|
||||
self.issues = []
|
||||
|
||||
def walk(self, node):
|
||||
self.initialize(node)
|
||||
value = self.visit(node)
|
||||
self.finalize()
|
||||
return value
|
||||
@@ -27,6 +28,9 @@ class Normalizer(object):
|
||||
def visit_leaf(self, leaf):
|
||||
return leaf.prefix + leaf.value
|
||||
|
||||
def initialize(self, node):
|
||||
pass
|
||||
|
||||
def finalize(self):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user