[Python-checkins] CVS: python/dist/src/Lib asynchat.py,1.10,1.11 pickle.py,1.44,1.45 popen2.py,1.18,1.19 posixpath.py,1.40,1.41 pyclbr.py,1.17,1.18 smtpd.py,1.1,1.2 urllib.py,1.115,1.116 webbrowser.py,1.10,1.11

Tim Peters tim_one@users.sourceforge.net
Fri, 09 Feb 2001 12:06:03 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv30708/python/dist/src/Lib

Modified Files:
	asynchat.py pickle.py popen2.py posixpath.py pyclbr.py 
	smtpd.py urllib.py webbrowser.py 
Log Message:
Whitespace normalization.


Index: asynchat.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/asynchat.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** asynchat.py	2001/02/09 05:04:48	1.10
--- asynchat.py	2001/02/09 20:06:00	1.11
***************
*** 1,4 ****
  # -*- Mode: Python; tab-width: 4 -*-
! #       Id: asynchat.py,v 2.26 2000/09/07 22:29:26 rushing Exp 
  #       Author: Sam Rushing <rushing@nightmare.com>
  
--- 1,4 ----
  # -*- Mode: Python; tab-width: 4 -*-
! #       Id: asynchat.py,v 2.26 2000/09/07 22:29:26 rushing Exp
  #       Author: Sam Rushing <rushing@nightmare.com>
  

Index: pickle.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pickle.py,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -r1.44 -r1.45
*** pickle.py	2001/02/07 23:14:30	1.44
--- pickle.py	2001/02/09 20:06:00	1.45
***************
*** 324,328 ****
                          self.write(BINSTRING + s + object)
              else:
!                 if unicode: 
                      object = object.replace(u"\\", u"\\u005c")
                      object = object.replace(u"\n", u"\\u000a")
--- 324,328 ----
                          self.write(BINSTRING + s + object)
              else:
!                 if unicode:
                      object = object.replace(u"\\", u"\\u005c")
                      object = object.replace(u"\n", u"\\u000a")
***************
*** 336,340 ****
              memo[d] = (memo_len, object)
          dispatch[StringType] = save_string
!             
      def save_tuple(self, object):
  
--- 336,340 ----
              memo[d] = (memo_len, object)
          dispatch[StringType] = save_string
! 
      def save_tuple(self, object):
  

Index: popen2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/popen2.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** popen2.py	2001/02/07 23:14:30	1.18
--- popen2.py	2001/02/09 20:06:00	1.19
***************
*** 159,163 ****
  
      __all__.extend(["Popen3", "Popen4"])
!     
  def _test():
      cmd  = "cat"
--- 159,163 ----
  
      __all__.extend(["Popen3", "Popen4"])
! 
  def _test():
      cmd  = "cat"

Index: posixpath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/posixpath.py,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -r1.40 -r1.41
*** posixpath.py	2001/01/29 11:29:44	1.40
--- posixpath.py	2001/02/09 20:06:00	1.41
***************
*** 347,351 ****
      # POSIX allows one or two initial slashes, but treats three or more
      # as single slash.
!     if (initial_slashes and 
          path.startswith('//') and not path.startswith('///')):
          initial_slashes = 2
--- 347,351 ----
      # POSIX allows one or two initial slashes, but treats three or more
      # as single slash.
!     if (initial_slashes and
          path.startswith('//') and not path.startswith('///')):
          initial_slashes = 2

Index: pyclbr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pyclbr.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** pyclbr.py	2001/02/09 09:32:08	1.17
--- pyclbr.py	2001/02/09 20:06:00	1.18
***************
*** 335,337 ****
  def _indent(ws, _expandtabs=string.expandtabs):
      return len(_expandtabs(ws, TABWIDTH))
- 
--- 335,336 ----

Index: smtpd.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/smtpd.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** smtpd.py	2001/01/31 22:51:35	1.1
--- smtpd.py	2001/02/09 20:06:00	1.2
***************
*** 91,95 ****
  
  
! 
  def usage(code, msg=''):
      print >> sys.stderr, __doc__ % globals()
--- 91,95 ----
  
  
! 
  def usage(code, msg=''):
      print >> sys.stderr, __doc__ % globals()
***************
*** 98,103 ****
      sys.exit(code)
  
  
- 
  class SMTPChannel(asynchat.async_chat):
      COMMAND = 0
--- 98,103 ----
      sys.exit(code)
  
+ 
  
  class SMTPChannel(asynchat.async_chat):
      COMMAND = 0
***************
*** 264,268 ****
  
  
! 
  class SMTPServer(asyncore.dispatcher):
      def __init__(self, localaddr, remoteaddr):
--- 264,268 ----
  
  
! 
  class SMTPServer(asyncore.dispatcher):
      def __init__(self, localaddr, remoteaddr):
***************
*** 310,315 ****
          """
          raise UnimplementedError
  
- 
  class DebuggingServer(SMTPServer):
      # Do something with the gathered message
--- 310,315 ----
          """
          raise UnimplementedError
+ 
  
  class DebuggingServer(SMTPServer):
      # Do something with the gathered message
***************
*** 327,331 ****
  
  
! 
  class PureProxy(SMTPServer):
      def process_message(self, peer, mailfrom, rcpttos, data):
--- 327,331 ----
  
  
! 
  class PureProxy(SMTPServer):
      def process_message(self, peer, mailfrom, rcpttos, data):
***************
*** 367,372 ****
          return refused
  
  
- 
  class MailmanProxy(PureProxy):
      def process_message(self, peer, mailfrom, rcpttos, data):
--- 367,372 ----
          return refused
  
+ 
  
  class MailmanProxy(PureProxy):
      def process_message(self, peer, mailfrom, rcpttos, data):
***************
*** 406,410 ****
          for rcpt, listname, command in listnames:
              rcpttos.remove(rcpt)
!         # If there's any non-list destined recipients left, 
          print >> DEBUGSTREAM, 'forwarding recips:', ' '.join(rcpttos)
          if rcpttos:
--- 406,410 ----
          for rcpt, listname, command in listnames:
              rcpttos.remove(rcpt)
!         # If there's any non-list destined recipients left,
          print >> DEBUGSTREAM, 'forwarding recips:', ' '.join(rcpttos)
          if rcpttos:
***************
*** 448,452 ****
  
  
! 
  class Options:
      setuid = 1
--- 448,452 ----
  
  
! 
  class Options:
      setuid = 1
***************
*** 502,507 ****
      return options
  
  
- 
  if __name__ == '__main__':
      options = parseargs()
--- 502,507 ----
      return options
  
+ 
  
  if __name__ == '__main__':
      options = parseargs()

Index: urllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib.py,v
retrieving revision 1.115
retrieving revision 1.116
diff -C2 -r1.115 -r1.116
*** urllib.py	2001/01/28 21:11:12	1.115
--- urllib.py	2001/02/09 20:06:00	1.116
***************
*** 1104,1108 ****
      input.
      """
!     
      if hasattr(query,"items"):
          # mapping objects
--- 1104,1108 ----
      input.
      """
! 
      if hasattr(query,"items"):
          # mapping objects

Index: webbrowser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/webbrowser.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** webbrowser.py	2001/01/23 15:49:34	1.10
--- webbrowser.py	2001/02/09 20:06:00	1.11
***************
*** 7,12 ****
      pass
  
! _browsers = {}		# Dictionary of available browser controllers
! _tryorder = []		# Preference order of available browsers
  
  def register(name, klass, instance=None):
--- 7,12 ----
      pass
  
! _browsers = {}          # Dictionary of available browser controllers
! _tryorder = []          # Preference order of available browsers
  
  def register(name, klass, instance=None):
***************
*** 25,29 ****
              return browser
          else:
!             # User gave us a browser name. 
              command = _browsers[browser.lower()]
              if command[1] is None:
--- 25,29 ----
              return browser
          else:
!             # User gave us a browser name.
              command = _browsers[browser.lower()]
              if command[1] is None:
***************
*** 38,42 ****
      get().open(url, new, autoraise)
  
! def open_new(url):	# Marked deprecated.  May be removed in 2.1.
      get().open(url, 1)
  
--- 38,42 ----
      get().open(url, new, autoraise)
  
! def open_new(url):      # Marked deprecated.  May be removed in 2.1.
      get().open(url, 1)
  
***************
*** 48,52 ****
  #
  
! # 
  # Platform support for Unix
  #
--- 48,52 ----
  #
  
! #
  # Platform support for Unix
  #
***************
*** 79,83 ****
              os.system(self.command % url)
  
!         def open_new(self, url):	# Deprecated.  May be removed in 2.1.
              self.open(url)
  
--- 79,83 ----
              os.system(self.command % url)
  
!         def open_new(self, url):        # Deprecated.  May be removed in 2.1.
              self.open(url)