Magic names were not validated correctly

Fixes #6.
This commit is contained in:
Dave Halter
2017-09-14 09:04:08 +02:00
parent 3a506b44ac
commit 26e882d19c

View File

@@ -145,7 +145,7 @@ class BackslashNode(IndentationNode):
def _is_magic_name(name): def _is_magic_name(name):
return name.value.startswith('__') and name.value.startswith('__') return name.value.startswith('__') and name.value.endswith('__')
class PEP8Normalizer(ErrorFinder): class PEP8Normalizer(ErrorFinder):