]> granicus.if.org Git - python/commitdiff
Whitespace normalization.
authorTim Peters <tim.peters@gmail.com>
Fri, 9 Feb 2001 20:06:00 +0000 (20:06 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 9 Feb 2001 20:06:00 +0000 (20:06 +0000)
Lib/asynchat.py
Lib/pickle.py
Lib/popen2.py
Lib/posixpath.py
Lib/pyclbr.py
Lib/smtpd.py
Lib/urllib.py
Lib/webbrowser.py

index 88873d28d3e19eeac968370081d9043eb5160652..bcbfc012863b49211f8c29376f24beeb4fa5c48e 100644 (file)
@@ -1,5 +1,5 @@
 # -*- Mode: Python; tab-width: 4 -*-
-#       Id: asynchat.py,v 2.26 2000/09/07 22:29:26 rushing Exp 
+#       Id: asynchat.py,v 2.26 2000/09/07 22:29:26 rushing Exp
 #       Author: Sam Rushing <rushing@nightmare.com>
 
 # ======================================================================
index b0c6a79fdfe7cfd9d65ae18e051cf78066ccf93a..5606ee024e3371e8fa49daf2abf3679a042d8b6d 100644 (file)
@@ -323,7 +323,7 @@ class Pickler:
                     else:
                         self.write(BINSTRING + s + object)
             else:
-                if unicode: 
+                if unicode:
                     object = object.replace(u"\\", u"\\u005c")
                     object = object.replace(u"\n", u"\\u000a")
                     object = object.encode('raw-unicode-escape')
@@ -335,7 +335,7 @@ class Pickler:
             self.write(self.put(memo_len))
             memo[d] = (memo_len, object)
         dispatch[StringType] = save_string
-            
+
     def save_tuple(self, object):
 
         write = self.write
index 954eb29772ebcb4a1acc69249600947fead7f2da..8b1af7620ae2064a3ea9cc7d04945518d3b2ee63 100644 (file)
@@ -158,7 +158,7 @@ else:
         return inst.fromchild, inst.tochild
 
     __all__.extend(["Popen3", "Popen4"])
-    
+
 def _test():
     cmd  = "cat"
     teststr = "ab cd\n"
index 31b331552314837ca148627c587137ee8ce6780f..2d18f5d47abf378a1f9faf7bca63f81dc927f9ac 100644 (file)
@@ -346,7 +346,7 @@ def normpath(path):
     initial_slashes = path.startswith('/')
     # POSIX allows one or two initial slashes, but treats three or more
     # as single slash.
-    if (initial_slashes and 
+    if (initial_slashes and
         path.startswith('//') and not path.startswith('///')):
         initial_slashes = 2
     comps = path.split('/')
index 305cabb0858a9d70cc33f180fa2bdafdc35b2003..b4e934bff7421c1d022609a92e99f5d3f57cfd5d 100644 (file)
@@ -334,4 +334,3 @@ def readmodule_ex(module, path=[], inpackage=0):
 
 def _indent(ws, _expandtabs=string.expandtabs):
     return len(_expandtabs(ws, TABWIDTH))
-
index 21c0114079ec8efe41b29a072a0c12b7b0d5361b..3d94b97aaa50f0d1e8d62184ceec87d85866af4b 100755 (executable)
@@ -90,7 +90,7 @@ NEWLINE = '\n'
 EMPTYSTRING = ''
 
 
-\f
+
 def usage(code, msg=''):
     print >> sys.stderr, __doc__ % globals()
     if msg:
@@ -98,7 +98,7 @@ def usage(code, msg=''):
     sys.exit(code)
 
 
-\f
+
 class SMTPChannel(asynchat.async_chat):
     COMMAND = 0
     DATA = 1
@@ -263,7 +263,7 @@ class SMTPChannel(asynchat.async_chat):
         self.push('354 End data with <CR><LF>.<CR><LF>')
 
 
-\f
+
 class SMTPServer(asyncore.dispatcher):
     def __init__(self, localaddr, remoteaddr):
         self._localaddr = localaddr
@@ -310,7 +310,7 @@ class SMTPServer(asyncore.dispatcher):
         """
         raise UnimplementedError
 
-\f
+
 class DebuggingServer(SMTPServer):
     # Do something with the gathered message
     def process_message(self, peer, mailfrom, rcpttos, data):
@@ -326,7 +326,7 @@ class DebuggingServer(SMTPServer):
         print '------------ END MESSAGE ------------'
 
 
-\f
+
 class PureProxy(SMTPServer):
     def process_message(self, peer, mailfrom, rcpttos, data):
         lines = data.split('\n')
@@ -367,7 +367,7 @@ class PureProxy(SMTPServer):
         return refused
 
 
-\f
+
 class MailmanProxy(PureProxy):
     def process_message(self, peer, mailfrom, rcpttos, data):
         from cStringIO import StringIO
@@ -405,7 +405,7 @@ class MailmanProxy(PureProxy):
         # since we don't expect a large number of recipients.
         for rcpt, listname, command in listnames:
             rcpttos.remove(rcpt)
-        # If there's any non-list destined recipients left, 
+        # If there's any non-list destined recipients left,
         print >> DEBUGSTREAM, 'forwarding recips:', ' '.join(rcpttos)
         if rcpttos:
             refused = self._deliver(mailfrom, rcpttos, data)
@@ -447,7 +447,7 @@ class MailmanProxy(PureProxy):
                 msg.Enqueue(mlist, torequest=1)
 
 
-\f
+
 class Options:
     setuid = 1
     classname = 'PureProxy'
@@ -502,7 +502,7 @@ def parseargs():
     return options
 
 
-\f
+
 if __name__ == '__main__':
     options = parseargs()
     # Become nobody
index a410e71315f7effe017f8d4e96d2d5324a9d91ce..c5d85fc3939fffa33488b5d546fbdbb8ac747f38 100644 (file)
@@ -1103,7 +1103,7 @@ def urlencode(query,doseq=0):
     parameters in the output will match the order of parameters in the
     input.
     """
-    
+
     if hasattr(query,"items"):
         # mapping objects
         query = query.items()
index 0ad20d385e2d415eab76f4a547d294ac0cf50bef..59825fa53afe211706e5047738e3668e09eb69cc 100644 (file)
@@ -6,8 +6,8 @@ import sys
 class Error(Exception):
     pass
 
-_browsers = {}         # Dictionary of available browser controllers
-_tryorder = []         # Preference order of available browsers
+_browsers = {}          # Dictionary of available browser controllers
+_tryorder = []          # Preference order of available browsers
 
 def register(name, klass, instance=None):
     """Register a browser connector and, optionally, connection."""
@@ -24,7 +24,7 @@ def get(using=None):
             # User gave us a command line, don't mess with it.
             return browser
         else:
-            # User gave us a browser name. 
+            # User gave us a browser name.
             command = _browsers[browser.lower()]
             if command[1] is None:
                 return command[0]()
@@ -37,7 +37,7 @@ def get(using=None):
 def open(url, new=0, autoraise=1):
     get().open(url, new, autoraise)
 
-def open_new(url):     # Marked deprecated.  May be removed in 2.1.
+def open_new(url):      # Marked deprecated.  May be removed in 2.1.
     get().open(url, 1)
 
 #
@@ -47,7 +47,7 @@ def open_new(url):    # Marked deprecated.  May be removed in 2.1.
 # support the user's platform.
 #
 
-# 
+#
 # Platform support for Unix
 #
 
@@ -78,7 +78,7 @@ if os.environ.get("TERM") or os.environ.get("DISPLAY"):
         def open(self, url, new=0, autoraise=1):
             os.system(self.command % url)
 
-        def open_new(self, url):       # Deprecated.  May be removed in 2.1.
+        def open_new(self, url):        # Deprecated.  May be removed in 2.1.
             self.open(url)
 
     # Easy cases first -- register console browsers if we have them.