Skip to content

Commit a9694bf

Browse files
committed
Python: Clean whitespace
1 parent 3bdc92b commit a9694bf

File tree

1 file changed

+9
-10
lines changed
  • python/ql/test/query-tests/Statements/general

1 file changed

+9
-10
lines changed

python/ql/test/query-tests/Statements/general/test.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def return_in_finally(seq, x):
1818
finally:
1919
return 1
2020
return 0
21-
21+
2222
#Break in loop in finally
2323
#This is OK
2424
def return_in_loop_in_finally(f, seq):
@@ -27,7 +27,7 @@ def return_in_loop_in_finally(f, seq):
2727
finally:
2828
for i in seq:
2929
break
30-
30+
3131
#But this is not
3232
def return_in_loop_in_finally(f, seq):
3333
try:
@@ -49,7 +49,7 @@ def __init__(self):
4949

5050
for x in NonIterator():
5151
do_something(x)
52-
52+
5353
#None in for loop
5454

5555
def dodgy_iter(x):
@@ -91,8 +91,8 @@ class D(dict): pass
9191

9292

9393

94-
95-
94+
95+
9696
def modification_of_locals():
9797
x = 0
9898
locals()['x'] = 1
@@ -128,7 +128,7 @@ def __get__(self, instance, instance_type):
128128
return self.getter(instance_type)
129129

130130
class WithClassProperty(object):
131-
131+
132132
@classproperty
133133
def x(self):
134134
return [0]
@@ -143,13 +143,13 @@ def x(self):
143143
#Should use context mamager
144144

145145
class CM(object):
146-
146+
147147
def __enter__(self):
148148
pass
149-
149+
150150
def __exit__(self, ex, cls, tb):
151151
pass
152-
152+
153153
def write(self, data):
154154
pass
155155

@@ -168,4 +168,3 @@ def assert_ok(seq):
168168
# False positive. ODASA-8042. Fixed in PR #2401.
169169
class false_positive:
170170
e = (x for x in [])
171-

0 commit comments

Comments
 (0)