diff --git a/parso/python/pep8.py b/parso/python/pep8.py index be4bf8f..59fe452 100644 --- a/parso/python/pep8.py +++ b/parso/python/pep8.py @@ -145,7 +145,7 @@ class BackslashNode(IndentationNode): def _is_magic_name(name): - return name.value.startswith('__') and name.value.startswith('__') + return name.value.startswith('__') and name.value.endswith('__') class PEP8Normalizer(ErrorFinder):