mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-22 04:01:32 +08:00
Remove the strange return values from visi_leaf.
This commit is contained in:
@@ -92,8 +92,6 @@ class ErrorFinder(Normalizer):
|
||||
message = "'continue' not supported inside 'finally' clause"
|
||||
self._add_syntax_error(message, leaf)
|
||||
|
||||
return ''
|
||||
|
||||
def _add_indentation_error(self, message, spacing):
|
||||
self._add_error(903, "IndentationError: " + message, spacing)
|
||||
|
||||
|
||||
@@ -367,8 +367,6 @@ class PEP8Normalizer(ErrorFinder):
|
||||
|
||||
self._previous_leaf = leaf
|
||||
|
||||
return leaf.value
|
||||
|
||||
def _visit_part(self, part, spacing, leaf):
|
||||
value = part.value
|
||||
type_ = part.type
|
||||
|
||||
Reference in New Issue
Block a user