summaryrefslogtreecommitdiff
path: root/testsuite/E22.py
diff options
context:
space:
mode:
authorTim Leslie <timl@breakawayconsulting.com.au>2012-08-20 16:02:05 +1000
committerTim Leslie <timl@breakawayconsulting.com.au>2012-08-20 16:02:05 +1000
commita589dcea61e6fbb5b7f71501bff4701887a6ec0d (patch)
tree277b3c33142b0c6faf9513b0b4b4616242d1fa4f /testsuite/E22.py
parent7f2d5a3f561d48864211642097f05c6a5d2c2a55 (diff)
downloadpep8-a589dcea61e6fbb5b7f71501bff4701887a6ec0d.tar.gz
Add optional surrounding whitespace to high precedence mathematical operators (*, **, /, //). Addresses issue #96
Diffstat (limited to 'testsuite/E22.py')
-rw-r--r--testsuite/E22.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/testsuite/E22.py b/testsuite/E22.py
index a6916ff..0583e68 100644
--- a/testsuite/E22.py
+++ b/testsuite/E22.py
@@ -51,14 +51,8 @@ i=i+1
#: E225
submitted +=1
#: E225
-x = x*2 - 1
-#: E225
-hypot2 = x*x + y*y
-#: E225
c = (a+b) * (a-b)
#: E225
-c = (a + b)*(a - b)
-#: E225
c = (a +b)*(a - b)
#: E225
c =-1
@@ -69,15 +63,18 @@ z = (x + 1) **y
#: E225
norman = True+False
#: E225
-_1MB = 2 ** 20
_1kB = _1MB >>10
#:
#: Okay
i = i + 1
submitted += 1
x = x * 2 - 1
+x = x*2 - 1
hypot2 = x * x + y * y
+hypot2 = x*x + y*y
c = (a + b) * (a - b)
+c = (a + b)*(a - b)
+_1MB = 2 ** 20
foo(bar, key='word', *args, **kwargs)
baz(**kwargs)
negative = -1