[Python-checkins] python/dist/src/Lib ConfigParser.py, 1.59, 1.60 Cookie.py, 1.16, 1.17 asyncore.py, 1.40, 1.41 heapq.py, 1.17, 1.18 ihooks.py, 1.16, 1.17 mimetypes.py, 1.28, 1.29 ntpath.py, 1.57, 1.58 os2emxpath.py, 1.10, 1.11 pre.py, 1.14, 1.15 profile.doc, 1.2, 1.3 rlcompleter.py, 1.13, 1.14 site.py, 1.53, 1.54 urllib2.py, 1.54, 1.55 whichdb.py, 1.17, 1.18 xmlrpclib.py, 1.29, 1.30

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Mon Oct 20 10:02:23 EDT 2003


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

Modified Files:
	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:
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.59
retrieving revision 1.60
diff -C2 -d -r1.59 -r1.60
*** ConfigParser.py	1 Sep 2003 23:30:44 -0000	1.59
--- ConfigParser.py	20 Oct 2003 14:01:49 -0000	1.60
***************
*** 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.17
diff -C2 -d -r1.16 -r1.17
*** Cookie.py	29 Dec 2002 16:44:31 -0000	1.16
--- Cookie.py	20 Oct 2003 14:01:49 -0000	1.17
***************
*** 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.41
diff -C2 -d -r1.40 -r1.41
*** asyncore.py	14 Feb 2003 01:13:01 -0000	1.40
--- asyncore.py	20 Oct 2003 14:01:49 -0000	1.41
***************
*** 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.18
diff -C2 -d -r1.17 -r1.18
*** heapq.py	13 Nov 2002 14:38:17 -0000	1.17
--- heapq.py	20 Oct 2003 14:01:49 -0000	1.18
***************
*** 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.17
diff -C2 -d -r1.16 -r1.17
*** ihooks.py	27 Feb 2003 20:14:34 -0000	1.16
--- ihooks.py	20 Oct 2003 14:01:49 -0000	1.17
***************
*** 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.29
diff -C2 -d -r1.28 -r1.29
*** mimetypes.py	9 Jun 2003 22:27:40 -0000	1.28
--- mimetypes.py	20 Oct 2003 14:01:50 -0000	1.29
***************
*** 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.58
diff -C2 -d -r1.57 -r1.58
*** ntpath.py	28 Mar 2003 22:23:24 -0000	1.57
--- ntpath.py	20 Oct 2003 14:01:50 -0000	1.58
***************
*** 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.11
diff -C2 -d -r1.10 -r1.11
*** os2emxpath.py	14 Feb 2003 19:35:30 -0000	1.10
--- os2emxpath.py	20 Oct 2003 14:01:50 -0000	1.11
***************
*** 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.15
diff -C2 -d -r1.14 -r1.15
*** pre.py	27 Feb 2003 20:14:37 -0000	1.14
--- pre.py	20 Oct 2003 14:01:50 -0000	1.15
***************
*** 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.3
diff -C2 -d -r1.2 -r1.3
*** profile.doc	1 Aug 1994 11:28:51 -0000	1.2
--- profile.doc	20 Oct 2003 14:01:50 -0000	1.3
***************
*** 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.14
diff -C2 -d -r1.13 -r1.14
*** rlcompleter.py	3 Jun 2002 15:58:31 -0000	1.13
--- rlcompleter.py	20 Oct 2003 14:01:50 -0000	1.14
***************
*** 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.54
diff -C2 -d -r1.53 -r1.54
*** site.py	18 Jul 2003 17:45:33 -0000	1.53
--- site.py	20 Oct 2003 14:01:50 -0000	1.54
***************
*** 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.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** urllib2.py	6 Oct 2003 05:15:13 -0000	1.54
--- urllib2.py	20 Oct 2003 14:01:50 -0000	1.55
***************
*** 803,807 ****
  
      # XXX Should rewrite do_open() to use the new httplib interface,
!     # would would be a little simpler.
  
      def do_open(self, http_class, req):
--- 803,807 ----
  
      # 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.18
diff -C2 -d -r1.17 -r1.18
*** whichdb.py	11 Jul 2003 12:16:48 -0000	1.17
--- whichdb.py	20 Oct 2003 14:01:51 -0000	1.18
***************
*** 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.30
diff -C2 -d -r1.29 -r1.30
*** xmlrpclib.py	12 Jul 2003 07:53:04 -0000	1.29
--- xmlrpclib.py	20 Oct 2003 14:01:51 -0000	1.30
***************
*** 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