1. Mark Shannon
  2. hotpy_2

Commits

Anthony Baxter  committed e58a71a

whitespace normalisation

  • Participants
  • Parent commits ce56c5e
  • Branches legacy-trunk

Comments (0)

Files changed (6)

File Lib/distutils/command/install_egg_info.py

View file
  • Ignore whitespace
             to_filename(safe_version(self.distribution.get_version())),
             sys.version[:3]
         )
-        self.target = os.path.join(self.install_dir, basename) 
+        self.target = os.path.join(self.install_dir, basename)
         self.outputs = [self.target]
 
     def run(self):
             f = open(target, 'w')
             self.distribution.metadata.write_pkg_file(f)
             f.close()
-            
+
     def get_outputs(self):
         return self.outputs
 

File Lib/test/leakers/test_generator_cycle.py

View file
  • Ignore whitespace
         while True:
             yield g
     g = gen()
-

File Lib/test/test_augassign.py

View file
  • Ignore whitespace
         x *= 2
 
         self.assertEquals(x, [1, 2, 3, 4, 1, 2, 3, 4])
-        
+
         x = [1, 2, 3]
         y = x
         x[1:2] *= 2
                 return self.val + val
             def __add__(self, val):
                 return aug_test(self.val + val)
-        
+
         class aug_test2(aug_test):
             def __iadd__(self, val):
                 self.val = self.val + val
         class aug_test3(aug_test):
             def __iadd__(self, val):
                 return aug_test3(self.val + val)
-        
+
         x = aug_test(1)
         y = x
         x += 10
         x = aug_test2(2)
         y = x
         x += 10
-        
+
         self.assert_(y is x)
         self.assertEquals(x.val, 12)
 
 __rlshift__ called
 __ilshift__ called
 '''.splitlines())
-                          
+
 def test_main():
     run_unittest(AugAssignTest)
 

File Lib/test/test_coercion.py

View file
  • Ignore whitespace
     (6,8): ('e', (6,0)),
 
     # MethodNumber(2)
-    (7,0): ('e', (0,0)), 
+    (7,0): ('e', (0,0)),
     (7,1): ('e', (0,1)),
     (7,2): ('e', (0,2)),
     (7,3): ('e', (0,3)),
     (7,8): ('e', (0,8)),
 
     # CoerceNumber(2)
-    (8,0): ('e', (0,0)), 
+    (8,0): ('e', (0,0)),
     (8,1): ('e', (0,1)),
     (8,2): ('e', (0,2)),
     (8,3): ('e', (0,3)),
                         res[i][6] = res[i][6][1]
             infix_results[key] = res
 
-        
-        
+
+
 process_infix_results()
 # now infix_results has two lists of results for every pairing.
 

File Lib/test/test_decimal.py

View file
  • Ignore whitespace
         else:
             # testing with -Qnew, so add __truediv__
             oplist.append(('/', '__truediv__', '__rtruediv__'))
-        
+
         for sym, lop, rop in oplist:
             setattr(E, lop, lambda self, other: 'str' + lop + str(other))
             setattr(E, rop, lambda self, other: str(other) + rop + 'str')

File Lib/test/test_index.py

View file
  • Ignore whitespace
         self.n = newstyle()
         self.o2 = oldstyle()
         self.n2 = newstyle()
-    
+
     def test_basic(self):
         self.o.ind = -2
         self.n.ind = 2
         assert(self.seq[self.o] == 40)
         assert(operator.index(self.o) == -2)
         assert(operator.index(self.n) == 2)
-        
+
     def test_error(self):
         self.o.ind = 'dumb'
         self.n.ind = 'bad'
         self.n = newstyle()
         self.o2 = oldstyle()
         self.n2 = newstyle()
-        
-    
+
+
     def test_basic(self):
         self.o.ind = -2
         self.n.ind = 2
         assert(self.seq[self.o] == 40)
         assert(operator.index(self.o) == -2)
         assert(operator.index(self.n) == 2)
-        
+
     def test_error(self):
         self.o.ind = 'dumb'
         self.n.ind = 'bad'
         self.n = newstyle()
         self.o2 = oldstyle()
         self.n2 = newstyle()
-        
-    
+
+
     def test_basic(self):
         self.o.ind = -2
         self.n.ind = 2
         assert(self.seq[self.o] == self.seq[-2])
         assert(operator.index(self.o) == -2)
         assert(operator.index(self.n) == 2)
-        
+
     def test_error(self):
         self.o.ind = 'dumb'
         self.n.ind = 'bad'
         self.n = newstyle()
         self.o2 = oldstyle()
         self.n2 = newstyle()
-        
-    
+
+
     def test_basic(self):
         self.o.ind = -2
         self.n.ind = 2
         assert(self.seq[self.o] == self.seq[-2])
         assert(operator.index(self.o) == -2)
         assert(operator.index(self.n) == 2)
-        
+
     def test_error(self):
         self.o.ind = 'dumb'
         self.n.ind = 'bad'