From 26e882d19c3df97430aab6fd66c2a05173d0a5d7 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 14 Sep 2017 09:04:08 +0200 Subject: [PATCH] Magic names were not validated correctly Fixes #6. --- parso/python/pep8.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):