mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-21 20:01:21 +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"
|
message = "'continue' not supported inside 'finally' clause"
|
||||||
self._add_syntax_error(message, leaf)
|
self._add_syntax_error(message, leaf)
|
||||||
|
|
||||||
return ''
|
|
||||||
|
|
||||||
def _add_indentation_error(self, message, spacing):
|
def _add_indentation_error(self, message, spacing):
|
||||||
self._add_error(903, "IndentationError: " + message, spacing)
|
self._add_error(903, "IndentationError: " + message, spacing)
|
||||||
|
|
||||||
|
|||||||
@@ -367,8 +367,6 @@ class PEP8Normalizer(ErrorFinder):
|
|||||||
|
|
||||||
self._previous_leaf = leaf
|
self._previous_leaf = leaf
|
||||||
|
|
||||||
return leaf.value
|
|
||||||
|
|
||||||
def _visit_part(self, part, spacing, leaf):
|
def _visit_part(self, part, spacing, leaf):
|
||||||
value = part.value
|
value = part.value
|
||||||
type_ = part.type
|
type_ = part.type
|
||||||
|
|||||||
Reference in New Issue
Block a user