[Python-checkins] r50706 - in python/trunk/Lib: decimal.py subprocess.py test/test_dis.py

tim.peters python-checkins at python.org
Tue Jul 18 23:55:16 CEST 2006


Author: tim.peters
Date: Tue Jul 18 23:55:15 2006
New Revision: 50706

Modified:
   python/trunk/Lib/decimal.py
   python/trunk/Lib/subprocess.py
   python/trunk/Lib/test/test_dis.py
Log:
Whitespace normalization.


Modified: python/trunk/Lib/decimal.py
==============================================================================
--- python/trunk/Lib/decimal.py	(original)
+++ python/trunk/Lib/decimal.py	Tue Jul 18 23:55:15 2006
@@ -165,7 +165,7 @@
     """
     def handle(self, context, *args):
         """Called when context._raise_error is called and trap_enabler is set.
-        
+
         First argument is self, second is the context.  More arguments can
         be given, those being after the explanation in _raise_error (For
         example, context._raise_error(NewError, '(-x)!', self._sign) would
@@ -2258,9 +2258,9 @@
         s.append(
           'Context(prec=%(prec)d, rounding=%(rounding)s, Emin=%(Emin)d, Emax=%(Emax)d, capitals=%(capitals)d'
           % vars(self))
-        s.append('flags=[' + ', '.join([f.__name__ for f, v 
+        s.append('flags=[' + ', '.join([f.__name__ for f, v
                                         in self.flags.items() if v]) + ']')
-        s.append('traps=[' + ', '.join([t.__name__ for t, v 
+        s.append('traps=[' + ', '.join([t.__name__ for t, v
                                         in self.traps.items() if v]) + ']')
         return ', '.join(s) + ')'
 
@@ -2281,7 +2281,7 @@
 
     def copy(self):
         """Returns a deep copy from self."""
-        nc = Context(self.prec, self.rounding, self.traps.copy(), 
+        nc = Context(self.prec, self.rounding, self.traps.copy(),
                      self.flags.copy(), self._rounding_decision,
                      self.Emin, self.Emax, self.capitals,
                      self._clamp, self._ignored_flags)
@@ -2701,7 +2701,7 @@
         """Returns the remainder from integer division.
 
         The result is the residue of the dividend after the operation of
-        calculating integer division as described for divide-integer, rounded 
+        calculating integer division as described for divide-integer, rounded
         to precision digits if necessary. The sign of the result, if non-zero,
         is the same as that of the original dividend.
 
@@ -3077,7 +3077,7 @@
 
 def _string2exact(s):
     """Return sign, n, p s.t.
-    
+
     Float string value == -1**sign * n * 10**p exactly
     """
     m = _parser(s)

Modified: python/trunk/Lib/subprocess.py
==============================================================================
--- python/trunk/Lib/subprocess.py	(original)
+++ python/trunk/Lib/subprocess.py	Tue Jul 18 23:55:15 2006
@@ -369,7 +369,7 @@
         self.cmd = cmd
     def __str__(self):
         return "Command '%s' returned non-zero exit status %d" % (self.cmd, self.returncode)
-    
+
 
 if mswindows:
     import threading

Modified: python/trunk/Lib/test/test_dis.py
==============================================================================
--- python/trunk/Lib/test/test_dis.py	(original)
+++ python/trunk/Lib/test/test_dis.py	Tue Jul 18 23:55:15 2006
@@ -133,10 +133,10 @@
 
     def test_big_linenos(self):
         def func(count):
-           namespace = {}
-           func = "def foo():\n " + "".join(["\n "] * count + ["spam\n"])
-           exec func in namespace
-           return namespace['foo']
+            namespace = {}
+            func = "def foo():\n " + "".join(["\n "] * count + ["spam\n"])
+            exec func in namespace
+            return namespace['foo']
 
         # Test all small ranges
         for i in xrange(1, 300):


More information about the Python-checkins mailing list