Whitespace normalization.
authorTim Peters <tim.peters@gmail.com>
Fri, 23 Aug 2002 18:19:30 +0000 (18:19 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 23 Aug 2002 18:19:30 +0000 (18:19 +0000)
Lib/dis.py
Lib/email/Charset.py
Lib/email/Message.py
Lib/email/Parser.py
Lib/encodings/string_escape.py
Lib/pdb.py
Tools/idle/CallTips.py
Tools/idle/IOBinding.py
Tools/idle/ScriptBinding.py

index a1cc215f9842e5f5d904fb44f3a6436a35404858..4257729c2f69c387d3ead9bb87840781e906f916 100644 (file)
@@ -68,7 +68,7 @@ def disassemble(co, lasti=-1):
         table_index += 1
     addr = 0
     line_incr = 0
-    
+
     labels = findlabels(code)
     n = len(code)
     i = 0
index 9a54dab9ef864e8b55593465c4b83f36c1abdac7..c0fe9d7bdecfe6fa162545bcf4879b351a07a011 100644 (file)
@@ -11,7 +11,7 @@ else:
     from types import UnicodeType
     def _is_unicode(x):
         return isinstance(x, UnicodeType)
-    
+
 from email.Encoders import encode_7or8bit
 import email.base64MIME
 import email.quopriMIME
index 40e4785a42ddfa223b36eb31093b2c941455d561..8b4f8bdb5b74619a103df74a4119d610dc71fe2e 100644 (file)
@@ -52,12 +52,12 @@ def _formatparam(param, value=None, quote=1):
 
 def _unquotevalue(value):
     if isinstance(value, TupleType):
-       return (value[0], value[1], Utils.unquote(value[2]))
+        return (value[0], value[1], Utils.unquote(value[2]))
     else:
-       return Utils.unquote(value)
+        return Utils.unquote(value)
 
 
-\f
\f
 class Message:
     """Basic message object for use inside the object tree.
 
index b9d3ed3645e9a26cb06005b731236779a6c45cd4..a2ac576436bc1178edf85e55658dca48b87b3a3d 100644 (file)
@@ -129,7 +129,7 @@ class Parser:
             # boundary.
             separator = '--' + boundary
             payload = fp.read()
-            # We use an RE here because boundaries can have trailing 
+            # We use an RE here because boundaries can have trailing
             # whitespace.
             mo = re.search(
                 r'(?P<sep>' + re.escape(separator) + r')(?P<ws>[ \t]*)',
@@ -176,15 +176,15 @@ class Parser:
                 terminator = len(payload)
             # We split the textual payload on the boundary separator, which
             # includes the trailing newline. If the container is a
-            # multipart/digest then the subparts are by default message/rfc822 
-            # instead of text/plain.  In that case, they'll have a optional 
-            # block of MIME headers, then an empty line followed by the 
+            # multipart/digest then the subparts are by default message/rfc822
+            # instead of text/plain.  In that case, they'll have a optional
+            # block of MIME headers, then an empty line followed by the
             # message headers.
             parts = re.split(
                 linesep + re.escape(separator) + r'[ \t]*' + linesep,
                 payload[start:terminator])
             for part in parts:
-                if isdigest: 
+                if isdigest:
                     if part[0] == linesep:
                         # There's no header block so create an empty message
                         # object as the container, and lop off the newline so
index 0e9a17f1ba27244b5b8bb80f4f1ae964342592b6..c02bfeef2e6a02faf87f7765c2982d610ab4165a 100644 (file)
@@ -14,7 +14,7 @@ class Codec(codecs.Codec):
 
 class StreamWriter(Codec,codecs.StreamWriter):
     pass
-        
+
 class StreamReader(Codec,codecs.StreamReader):
     pass
 
index c6164ad08ac8fa1df41d2ff1512bded815555e65..2a8a9e3fd568794aa058005f433fadea74f4868c 100755 (executable)
@@ -105,7 +105,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
                 if len(line) > 0 and line[0] != '#':
                     self.onecmd(line)
 
-    # Override Bdb methods 
+    # Override Bdb methods
 
     def user_call(self, frame, argument_list):
         """This method is called when there is the remote possibility
index 412a2e685399f0de9c0e2675a97cc5340909d0a3..dc25083e7eb85e2cffac7e3c75f0f69f5685a68b 100644 (file)
@@ -79,7 +79,7 @@ class CallTips:
                              wordchars="._" + string.ascii_letters + string.digits):
         # Usage of ascii_letters is necessary to avoid UnicodeErrors
         # if chars contains non-ASCII.
-        
+
         # XXX - This needs to be moved to a better place
         # so the "." attribute lookup code can also use it.
         text = self.text
index d80e53ceae0499d56aabd51125482275f1ebcf88..fd8aaf624fb8a59719c17a99eb3e689f624d9096 100644 (file)
@@ -209,7 +209,7 @@ class IOBinding:
                 "installation. The file may not display correctly" % name,
                 master = self.text)
             enc = None
-            
+
         if enc:
             try:
                 return unicode(chars, enc)
index 19a20b259d4e0bd876a4a134129c3c4422363a78..3e1279ccbc37089bc4ccc2294b9ad34a69a4d30e 100644 (file)
@@ -53,7 +53,7 @@ class ScriptBinding:
     def __init__(self, editwin):
         if not editwin.runnable:
             self.menudefs = []
-            self.keydefs = {}        
+            self.keydefs = {}
         self.editwin = editwin
         # Provide instance variables referenced by Debugger
         # XXX This should be done differently