Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10fb386

Browse files
committed
Whitespace normalization.
1 parent 658cba6 commit 10fb386

4 files changed

Lines changed: 11 additions & 13 deletions

File tree

Lib/test/test_funcattrs.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ def another():
156156
del another.func_defaults
157157

158158
def foo():
159-
pass
159+
pass
160160

161161
def bar():
162-
pass
162+
pass
163163

164164
def temp():
165-
print 1
165+
print 1
166166

167167
if foo==bar: raise TestFailed
168168

@@ -172,4 +172,3 @@ def temp():
172172
foo.func_code = temp.func_code
173173

174174
d[foo]
175-

Lib/test/test_grammar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def tellme(file=None):
367367
finally:
368368
msg = "continue + try/finally ok"
369369
print msg
370-
370+
371371
print 'return_stmt' # 'return' [testlist]
372372
def g1(): return
373373
def g2(): return 1

Lib/test/test_new.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ def break_yolks(self):
6666

6767
# bogus test of new.code()
6868
print 'new.code()'
69-
d = new.code(3, 3, 3, 3, codestr, (), (), (),
69+
d = new.code(3, 3, 3, 3, codestr, (), (), (),
7070
"<string>", "<name>", 1, "", (), ())
7171
# test backwards-compatibility version with no freevars or cellvars
72-
d = new.code(3, 3, 3, 3, codestr, (), (), (),
72+
d = new.code(3, 3, 3, 3, codestr, (), (), (),
7373
"<string>", "<name>", 1, "")
7474
if verbose:
7575
print d

Lib/test/test_scope.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,22 @@ def h(z):
105105
print "8. mixed freevars and cellvars"
106106

107107
def identity(x):
108-
return x
108+
return x
109109

110110
def f(x, y, z):
111111
def g(a, b, c):
112112
a = a + x # 3
113113
def h():
114-
# z * (4 + 9)
115-
# 3 * 13
114+
# z * (4 + 9)
115+
# 3 * 13
116116
return identity(z * (b + y))
117117
y = c + z # 9
118118
return h
119119
return g
120120

121121
g = f(1, 2, 3)
122122
h = g(2, 4, 6)
123-
verify(h() == 39)
123+
verify(h() == 39)
124124

125125
print "9. free variable in method"
126126

@@ -206,7 +206,7 @@ def f(s):
206206
"""
207207
# check_syntax(test2)
208208

209-
# XXX could allow this for exec with const argument, but what's the point
209+
# XXX could allow this for exec with const argument, but what's the point
210210
test3 = \
211211
"""def error(y):
212212
exec "a = 1"
@@ -275,4 +275,3 @@ def inner():
275275
pass
276276
else:
277277
raise TestFailed
278-

0 commit comments

Comments
 (0)