mirror of
https://github.com/davidhalter/parso.git
synced 2026-02-22 17:48:47 +08:00
Make it possible to list errors easier in a Python tree.
This commit is contained in:
@@ -168,11 +168,11 @@ class NodeOrLeaf(object):
|
||||
The returned code will be normalized, e.g. PEP8 for Python.
|
||||
"""
|
||||
normalizer = self._get_normalizer(normalizer_config)
|
||||
return normalizer.visit(self)
|
||||
return normalizer.walk(self)
|
||||
|
||||
def _get_normalizer_issues(self, normalizer_config=None):
|
||||
normalizer = self._get_normalizer(normalizer_config)
|
||||
normalizer.visit(self)
|
||||
normalizer.walk(self)
|
||||
return normalizer.issues
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user