]> granicus.if.org Git - python/commitdiff
Whitespace normalization.
authorTim Peters <tim.peters@gmail.com>
Fri, 9 Feb 2001 20:17:14 +0000 (20:17 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 9 Feb 2001 20:17:14 +0000 (20:17 +0000)
Lib/test/test_funcattrs.py
Lib/test/test_grammar.py
Lib/test/test_new.py
Lib/test/test_scope.py

index 0591ba607a7fbf9bb51dda02976db143dac3e5da..e41df9c70a2464f78c3eddb3847a6832f7d21f57 100644 (file)
@@ -156,13 +156,13 @@ else: raise TestFailed
 del another.func_defaults
 
 def foo():
-       pass
+    pass
 
 def bar():
-       pass
+    pass
 
 def temp():
-       print 1
+    print 1
 
 if foo==bar: raise TestFailed
 
@@ -172,4 +172,3 @@ d[foo] = 1
 foo.func_code = temp.func_code
 
 d[foo]
-
index b7af64a256259f9ac29781a8809a8e735f6874a6..5865e8ca325ef0c0b3411c006f8d33cfb91de7bc 100644 (file)
@@ -367,7 +367,7 @@ while not msg:
     finally:
         msg = "continue + try/finally ok"
 print msg
-    
+
 print 'return_stmt' # 'return' [testlist]
 def g1(): return
 def g2(): return 1
index 6ea7707d2cea6bffc944c236dbe4c0dc9e6dfbe4..8a7b9a6a257eb25276a1fc0e946272f63be79757 100644 (file)
@@ -66,10 +66,10 @@ verify(g['c'] == 3,
 
 # bogus test of new.code()
 print 'new.code()'
-d = new.code(3, 3, 3, 3, codestr, (), (), (), 
+d = new.code(3, 3, 3, 3, codestr, (), (), (),
              "<string>", "<name>", 1, "", (), ())
 # test backwards-compatibility version with no freevars or cellvars
-d = new.code(3, 3, 3, 3, codestr, (), (), (), 
+d = new.code(3, 3, 3, 3, codestr, (), (), (),
              "<string>", "<name>", 1, "")
 if verbose:
     print d
index 57c0dcb269c64c34c09048e2f72163a58ce43077..4f3c1ff14399a0fdfbd1f6637bcc55fdf30f9f09 100644 (file)
@@ -105,14 +105,14 @@ verify(test_func(5) == 47)
 print "8. mixed freevars and cellvars"
 
 def identity(x):
-       return x
+    return x
 
 def f(x, y, z):
     def g(a, b, c):
         a = a + x # 3
         def h():
-           # z * (4 + 9)
-           # 3 * 13
+            # z * (4 + 9)
+            # 3 * 13
             return identity(z * (b + y))
         y = c + z # 9
         return h
@@ -120,7 +120,7 @@ def f(x, y, z):
 
 g = f(1, 2, 3)
 h = g(2, 4, 6)
-verify(h() == 39) 
+verify(h() == 39)
 
 print "9. free variable in method"
 
@@ -206,7 +206,7 @@ test2 = \
 """
 # check_syntax(test2)
 
-# XXX could allow this for exec with const argument, but what's the point 
+# XXX could allow this for exec with const argument, but what's the point
 test3 = \
 """def error(y):
     exec "a = 1"
@@ -275,4 +275,3 @@ except UnboundLocalError:
     pass
 else:
     raise TestFailed
-