summaryrefslogtreecommitdiff
path: root/pep8.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-05-30 00:23:13 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-12-16 21:15:02 +0100
commit2105d9edc6cadb541b4d7148f9a6ab886160da90 (patch)
tree142847bbf48ae67c3fc2570af91503eae03effe0 /pep8.py
parentda9f37d3d9466e1cc35579748cb8adab57b5791c (diff)
downloadpep8-2105d9edc6cadb541b4d7148f9a6ab886160da90.tar.gz
Do not enforce whitespaces around ** operator; issue #292feature292
Diffstat (limited to 'pep8.py')
-rwxr-xr-xpep8.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pep8.py b/pep8.py
index 6f6a4c4..70d6e46 100755
--- a/pep8.py
+++ b/pep8.py
@@ -688,7 +688,7 @@ def missing_whitespace_around_operator(logical_line, tokens):
if need_space is True or need_space[1]:
# A needed trailing space was not found
yield prev_end, "E225 missing whitespace around operator"
- else:
+ elif prev_text != '**':
code, optype = 'E226', 'arithmetic'
if prev_text == '%':
code, optype = 'E228', 'modulo'