[Python-checkins] cpython (merge 3.2 -> default): Merge 3.2, fix typos.

florent.xicluna python-checkins at python.org
Fri Nov 11 19:39:55 CET 2011


http://hg.python.org/cpython/rev/74fa415dc715
changeset:   73509:74fa415dc715
parent:      73507:da2042c89d8a
parent:      73508:27fe09ff14b7
user:        Florent Xicluna <florent.xicluna at gmail.com>
date:        Fri Nov 11 19:39:25 2011 +0100
summary:
  Merge 3.2, fix typos.

files:
  Lib/email/_parseaddr.py      |  2 +-
  Lib/imaplib.py               |  2 +-
  Lib/packaging/pypi/dist.py   |  2 +-
  Lib/packaging/pypi/simple.py |  2 +-
  Lib/test/test_ast.py         |  2 +-
  Lib/test/test_logging.py     |  2 +-
  Lib/test/test_posix.py       |  2 +-
  Modules/Setup.dist           |  2 +-
  8 files changed, 8 insertions(+), 8 deletions(-)


diff --git a/Lib/email/_parseaddr.py b/Lib/email/_parseaddr.py
--- a/Lib/email/_parseaddr.py
+++ b/Lib/email/_parseaddr.py
@@ -203,7 +203,7 @@
     front of you.
 
     Note: this class interface is deprecated and may be removed in the future.
-    Use rfc822.AddressList instead.
+    Use email.utils.AddressList instead.
     """
 
     def __init__(self, field):
diff --git a/Lib/imaplib.py b/Lib/imaplib.py
--- a/Lib/imaplib.py
+++ b/Lib/imaplib.py
@@ -1392,7 +1392,7 @@
     """Convert date_time to IMAP4 INTERNALDATE representation.
 
     Return string in form: '"DD-Mmm-YYYY HH:MM:SS +HHMM"'.  The
-    date_time argument can be a number (int or float) represening
+    date_time argument can be a number (int or float) representing
     seconds since epoch (as returned by time.time()), a 9-tuple
     representing local time (as returned by time.localtime()), or a
     double-quoted string.  In the last case, it is assumed to already
diff --git a/Lib/packaging/pypi/dist.py b/Lib/packaging/pypi/dist.py
--- a/Lib/packaging/pypi/dist.py
+++ b/Lib/packaging/pypi/dist.py
@@ -427,7 +427,7 @@
         """Sort the results with the given properties.
 
         The `prefer_final` argument can be used to specify if final
-        distributions (eg. not dev, bet or alpha) would be prefered or not.
+        distributions (eg. not dev, beta or alpha) would be preferred or not.
 
         Results can be inverted by using `reverse`.
 
diff --git a/Lib/packaging/pypi/simple.py b/Lib/packaging/pypi/simple.py
--- a/Lib/packaging/pypi/simple.py
+++ b/Lib/packaging/pypi/simple.py
@@ -269,7 +269,7 @@
     def _register_release(self, release=None, release_info={}):
         """Register a new release.
 
-        Both a release or a dict of release_info can be provided, the prefered
+        Both a release or a dict of release_info can be provided, the preferred
         way (eg. the quicker) is the dict one.
 
         Return the list of existing releases for the given project.
diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py
--- a/Lib/test/test_ast.py
+++ b/Lib/test/test_ast.py
@@ -295,7 +295,7 @@
         self.assertEqual(x.body, body)
 
     def test_nodeclasses(self):
-        # Zero arguments constructor explicitely allowed
+        # Zero arguments constructor explicitly allowed
         x = ast.BinOp()
         self.assertEqual(x._fields, ('left', 'op', 'right'))
 
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -3222,7 +3222,7 @@
         # style defaults to %
         self.assertIsInstance(formatter._style, logging.PercentStyle)
 
-        # level is not explicitely set
+        # level is not explicitly set
         self.assertEqual(logging.root.level, self.original_logging_level)
 
     def test_filename(self):
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -190,7 +190,7 @@
             os.write(fd, b'test')
             os.lseek(fd, 0, os.SEEK_SET)
             self.assertEqual(b'es', posix.pread(fd, 2, 1))
-            # the first pread() shoudn't disturb the file offset
+            # the first pread() shouldn't disturb the file offset
             self.assertEqual(b'te', posix.read(fd, 2))
         finally:
             os.close(fd)
diff --git a/Modules/Setup.dist b/Modules/Setup.dist
--- a/Modules/Setup.dist
+++ b/Modules/Setup.dist
@@ -294,7 +294,7 @@
 #syslog syslogmodule.c		# syslog daemon interface
 
 
-# Curses support, requring the System V version of curses, often
+# Curses support, requiring the System V version of curses, often
 # provided by the ncurses library.  e.g. on Linux, link with -lncurses
 # instead of -lcurses).
 #

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list