[Python-checkins] python/dist/src/Lib ConfigParser.py, 1.58.8.1, 1.58.8.2 Cookie.py, 1.16, 1.16.14.1 asyncore.py, 1.40, 1.40.12.1 heapq.py, 1.17, 1.17.16.1 ihooks.py, 1.16, 1.16.10.1 mimetypes.py, 1.28, 1.28.8.1 ntpath.py, 1.57, 1.57.10.1 os2emxpath.py, 1.10, 1.10.12.1 pre.py, 1.14, 1.14.10.1 profile.doc, 1.2, 1.2.46.1 rlcompleter.py, 1.13, 1.13.16.1 site.py, 1.53, 1.53.6.1 urllib2.py, 1.53, 1.53.6.1 whichdb.py, 1.17, 1.17.6.1 xmlrpclib.py, 1.29, 1.29.6.1

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Mon Oct 20 10:35:18 EDT 2003


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

Modified Files:
      Tag: release23-maint
	ConfigParser.py Cookie.py asyncore.py heapq.py ihooks.py 
	mimetypes.py ntpath.py os2emxpath.py pre.py profile.doc 
	rlcompleter.py site.py urllib2.py whichdb.py xmlrpclib.py 
Log Message:
Backport checkin:
Fix a bunch of typos in documentation, docstrings and comments.
(From SF patch #810751)


Index: ConfigParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ConfigParser.py,v
retrieving revision 1.58.8.1
retrieving revision 1.58.8.2
diff -C2 -d -r1.58.8.1 -r1.58.8.2
*** ConfigParser.py	1 Sep 2003 23:31:39 -0000	1.58.8.1
--- ConfigParser.py	20 Oct 2003 14:34:45 -0000	1.58.8.2
***************
*** 20,24 ****
  class:
  
! ConfigParser -- responsible for for parsing a list of
                  configuration files, and managing the parsed database.
  
--- 20,24 ----
  class:
  
! ConfigParser -- responsible for parsing a list of
                  configuration files, and managing the parsed database.
  

Index: Cookie.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/Cookie.py,v
retrieving revision 1.16
retrieving revision 1.16.14.1
diff -C2 -d -r1.16 -r1.16.14.1
*** Cookie.py	29 Dec 2002 16:44:31 -0000	1.16
--- Cookie.py	20 Oct 2003 14:34:45 -0000	1.16.14.1
***************
*** 77,81 ****
  appropriate format for a Set-Cookie: header.  This is the
  default behavior.  You can change the header and printed
! attributes by using the the .output() function
  
     >>> C = Cookie.SmartCookie()
--- 77,81 ----
  appropriate format for a Set-Cookie: header.  This is the
  default behavior.  You can change the header and printed
! attributes by using the .output() function
  
     >>> C = Cookie.SmartCookie()

Index: asyncore.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/asyncore.py,v
retrieving revision 1.40
retrieving revision 1.40.12.1
diff -C2 -d -r1.40 -r1.40.12.1
*** asyncore.py	14 Feb 2003 01:13:01 -0000	1.40
--- asyncore.py	20 Oct 2003 14:34:45 -0000	1.40.12.1
***************
*** 498,502 ****
  # After a little research (reading man pages on various unixen, and
  # digging through the linux kernel), I've determined that select()
! # isn't meant for doing doing asynchronous file i/o.
  # Heartening, though - reading linux/mm/filemap.c shows that linux
  # supports asynchronous read-ahead.  So _MOST_ of the time, the data
--- 498,502 ----
  # After a little research (reading man pages on various unixen, and
  # digging through the linux kernel), I've determined that select()
! # isn't meant for doing asynchronous file i/o.
  # Heartening, though - reading linux/mm/filemap.c shows that linux
  # supports asynchronous read-ahead.  So _MOST_ of the time, the data

Index: heapq.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/heapq.py,v
retrieving revision 1.17
retrieving revision 1.17.16.1
diff -C2 -d -r1.17 -r1.17.16.1
*** heapq.py	13 Nov 2002 14:38:17 -0000	1.17
--- heapq.py	20 Oct 2003 14:34:45 -0000	1.17.16.1
***************
*** 239,243 ****
          pos = childpos
          childpos = 2*pos + 1
!     # The leaf at pos is empty now.  Put newitem there, and and bubble it up
      # to its final resting place (by sifting its parents down).
      heap[pos] = newitem
--- 239,243 ----
          pos = childpos
          childpos = 2*pos + 1
!     # The leaf at pos is empty now.  Put newitem there, and bubble it up
      # to its final resting place (by sifting its parents down).
      heap[pos] = newitem

Index: ihooks.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ihooks.py,v
retrieving revision 1.16
retrieving revision 1.16.10.1
diff -C2 -d -r1.16 -r1.16.10.1
*** ihooks.py	27 Feb 2003 20:14:34 -0000	1.16
--- ihooks.py	20 Oct 2003 14:34:45 -0000	1.16.10.1
***************
*** 19,23 ****
  class for other hooks classes.
  
! 2) A "module loader" class provides an interface to to search for a
  module in a search path and to load it.  It defines a method which
  searches for a module in a single directory; by overriding this method
--- 19,23 ----
  class for other hooks classes.
  
! 2) A "module loader" class provides an interface to search for a
  module in a search path and to load it.  It defines a method which
  searches for a module in a single directory; by overriding this method

Index: mimetypes.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/mimetypes.py,v
retrieving revision 1.28
retrieving revision 1.28.8.1
diff -C2 -d -r1.28 -r1.28.8.1
*** mimetypes.py	9 Jun 2003 22:27:40 -0000	1.28
--- mimetypes.py	20 Oct 2003 14:34:45 -0000	1.28.8.1
***************
*** 66,70 ****
  
      def add_type(self, type, ext, strict=True):
!         """Add a mapping between a type and and extension.
  
          When the extension is already known, the new
--- 66,70 ----
  
      def add_type(self, type, ext, strict=True):
!         """Add a mapping between a type and an extension.
  
          When the extension is already known, the new
***************
*** 270,274 ****
  
  def add_type(self, type, ext, strict=True):
!     """Add a mapping between a type and and extension.
  
      When the extension is already known, the new
--- 270,274 ----
  
  def add_type(self, type, ext, strict=True):
!     """Add a mapping between a type and an extension.
  
      When the extension is already known, the new

Index: ntpath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ntpath.py,v
retrieving revision 1.57
retrieving revision 1.57.10.1
diff -C2 -d -r1.57 -r1.57.10.1
*** ntpath.py	28 Mar 2003 22:23:24 -0000	1.57
--- ntpath.py	20 Oct 2003 14:34:45 -0000	1.57.10.1
***************
*** 302,306 ****
  # '.' and '..'), func(arg, dirname, filenames) is called, where
  # dirname is the name of the directory and filenames is the list
! # files files (and subdirectories etc.) in the directory.
  # The func may modify the filenames list, to implement a filter,
  # or to impose a different order of visiting.
--- 302,306 ----
  # '.' and '..'), func(arg, dirname, filenames) is called, where
  # dirname is the name of the directory and filenames is the list
! # of files (and subdirectories etc.) in the directory.
  # The func may modify the filenames list, to implement a filter,
  # or to impose a different order of visiting.

Index: os2emxpath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/os2emxpath.py,v
retrieving revision 1.10
retrieving revision 1.10.12.1
diff -C2 -d -r1.10 -r1.10.12.1
*** os2emxpath.py	14 Feb 2003 19:35:30 -0000	1.10
--- os2emxpath.py	20 Oct 2003 14:34:45 -0000	1.10.12.1
***************
*** 261,265 ****
  # '.' and '..'), func(arg, dirname, filenames) is called, where
  # dirname is the name of the directory and filenames is the list
! # files files (and subdirectories etc.) in the directory.
  # The func may modify the filenames list, to implement a filter,
  # or to impose a different order of visiting.
--- 261,265 ----
  # '.' and '..'), func(arg, dirname, filenames) is called, where
  # dirname is the name of the directory and filenames is the list
! # of files (and subdirectories etc.) in the directory.
  # The func may modify the filenames list, to implement a filter,
  # or to impose a different order of visiting.

Index: pre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pre.py,v
retrieving revision 1.14
retrieving revision 1.14.10.1
diff -C2 -d -r1.14 -r1.14.10.1
*** pre.py	27 Feb 2003 20:14:37 -0000	1.14
--- pre.py	20 Oct 2003 14:34:45 -0000	1.14.10.1
***************
*** 608,612 ****
          corresponding return value is the entire matching string; if
          it is in the inclusive range [1..99], it is the string
!         matching the the corresponding parenthesized group. If a group
          number is negative or larger than the number of groups defined
          in the pattern, an IndexError exception is raised. If a group
--- 608,612 ----
          corresponding return value is the entire matching string; if
          it is in the inclusive range [1..99], it is the string
!         matching the corresponding parenthesized group. If a group
          number is negative or larger than the number of groups defined
          in the pattern, an IndexError exception is raised. If a group

Index: profile.doc
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/profile.doc,v
retrieving revision 1.2
retrieving revision 1.2.46.1
diff -C2 -d -r1.2 -r1.2.46.1
*** profile.doc	1 Aug 1994 11:28:51 -0000	1.2
--- profile.doc	20 Oct 2003 14:34:45 -0000	1.2.46.1
***************
*** 340,344 ****
  
  When more than one key is provided, then additional keys are used as
! secondary criteria when the there is equality in all keys selected
  before them.  For example, sort_stats('name', 'file') will sort all
  the entries according to their function name, and resolve all ties
--- 340,344 ----
  
  When more than one key is provided, then additional keys are used as
! secondary criteria when there is equality in all keys selected
  before them.  For example, sort_stats('name', 'file') will sort all
  the entries according to their function name, and resolve all ties
***************
*** 465,469 ****
  accuracy.  The most obvious restriction is that the underlying "clock"
  is only ticking at a rate (typically) of about .001 seconds.  Hence no
! measurements will be more accurate that that underlying clock.  If
  enough measurements are taken, then the "error" will tend to average
  out. Unfortunately, removing this first error induces a second source
--- 465,469 ----
  accuracy.  The most obvious restriction is that the underlying "clock"
  is only ticking at a rate (typically) of about .001 seconds.  Hence no
! measurements will be more accurate than that underlying clock.  If
  enough measurements are taken, then the "error" will tend to average
  out. Unfortunately, removing this first error induces a second source

Index: rlcompleter.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/rlcompleter.py,v
retrieving revision 1.13
retrieving revision 1.13.16.1
diff -C2 -d -r1.13 -r1.13.16.1
*** rlcompleter.py	3 Jun 2002 15:58:31 -0000	1.13
--- rlcompleter.py	20 Oct 2003 14:34:45 -0000	1.13.16.1
***************
*** 118,122 ****
          evaluatable in self.namespace, it will be evaluated and its attributes
          (as revealed by dir()) are used as possible completions.  (For class
!         instances, class members are are also considered.)
  
          WARNING: this can still invoke arbitrary C code, if an object
--- 118,122 ----
          evaluatable in self.namespace, it will be evaluated and its attributes
          (as revealed by dir()) are used as possible completions.  (For class
!         instances, class members are also considered.)
  
          WARNING: this can still invoke arbitrary C code, if an object

Index: site.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/site.py,v
retrieving revision 1.53
retrieving revision 1.53.6.1
diff -C2 -d -r1.53 -r1.53.6.1
*** site.py	18 Jul 2003 17:45:33 -0000	1.53
--- site.py	20 Oct 2003 14:34:46 -0000	1.53.6.1
***************
*** 11,15 ****
  works).
  
! This will append site-specific paths to to the module search path.  On
  Unix, it starts with sys.prefix and sys.exec_prefix (if different) and
  appends lib/python<version>/site-packages as well as lib/site-python.
--- 11,15 ----
  works).
  
! This will append site-specific paths to the module search path.  On
  Unix, it starts with sys.prefix and sys.exec_prefix (if different) and
  appends lib/python<version>/site-packages as well as lib/site-python.

Index: urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v
retrieving revision 1.53
retrieving revision 1.53.6.1
diff -C2 -d -r1.53 -r1.53.6.1
*** urllib2.py	12 Jul 2003 07:33:32 -0000	1.53
--- urllib2.py	20 Oct 2003 14:34:46 -0000	1.53.6.1
***************
*** 799,803 ****
  
      # XXX Should rewrite do_open() to use the new httplib interface,
!     # would would be a little simpler.
  
      def do_open(self, http_class, req):
--- 799,803 ----
  
      # XXX Should rewrite do_open() to use the new httplib interface,
!     # would be a little simpler.
  
      def do_open(self, http_class, req):

Index: whichdb.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/whichdb.py,v
retrieving revision 1.17
retrieving revision 1.17.6.1
diff -C2 -d -r1.17 -r1.17.6.1
*** whichdb.py	11 Jul 2003 12:16:48 -0000	1.17
--- whichdb.py	20 Oct 2003 14:34:46 -0000	1.17.6.1
***************
*** 52,56 ****
              pass
  
!     # Check for dumbdbm next -- this has a .dir and and a .dat file
      try:
          # First check for presence of files
--- 52,56 ----
              pass
  
!     # Check for dumbdbm next -- this has a .dir and a .dat file
      try:
          # First check for presence of files

Index: xmlrpclib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xmlrpclib.py,v
retrieving revision 1.29
retrieving revision 1.29.6.1
diff -C2 -d -r1.29 -r1.29.6.1
*** xmlrpclib.py	12 Jul 2003 07:53:04 -0000	1.29
--- xmlrpclib.py	20 Oct 2003 14:34:46 -0000	1.29.6.1
***************
*** 995,999 ****
  #
  # @param data An XML-RPC packet, given as an 8-bit string.
! # @return A tuple containing the the unpacked data, and the method name
  #     (None if not present).
  # @see Fault
--- 995,999 ----
  #
  # @param data An XML-RPC packet, given as an 8-bit string.
! # @return A tuple containing the unpacked data, and the method name
  #     (None if not present).
  # @see Fault





More information about the Python-checkins mailing list