[Python-checkins] cpython (2.7): #18466: fix more typos. Patch by Févry Thibault.
ezio.melotti
python-checkins at python.org
Sat Aug 17 15:58:32 CEST 2013
http://hg.python.org/cpython/rev/c75b8d5fa016
changeset: 85230:c75b8d5fa016
branch: 2.7
parent: 85227:5295ed192ffd
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Sat Aug 17 16:56:09 2013 +0300
summary:
#18466: fix more typos. Patch by Févry Thibault.
files:
Include/datetime.h | 2 +-
Lib/collections.py | 2 +-
Lib/test/test_ast.py | 2 +-
Lib/test/test_cookielib.py | 2 +-
Lib/test/test_datetime.py | 2 +-
Lib/test/test_normalization.py | 2 +-
Lib/test/test_urllib.py | 2 +-
Misc/NEWS | 4 ++--
Modules/_ssl.c | 2 +-
Modules/unicodedata.c | 2 +-
PC/_subprocess.c | 2 +-
PCbuild/readme.txt | 2 +-
12 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/Include/datetime.h b/Include/datetime.h
--- a/Include/datetime.h
+++ b/Include/datetime.h
@@ -42,7 +42,7 @@
typedef struct
{
- PyObject_HEAD /* a pure abstract base clase */
+ PyObject_HEAD /* a pure abstract base class */
} PyDateTime_TZInfo;
diff --git a/Lib/collections.py b/Lib/collections.py
--- a/Lib/collections.py
+++ b/Lib/collections.py
@@ -369,7 +369,7 @@
result = namespace[typename]
# For pickling to work, the __module__ variable needs to be set to the frame
- # where the named tuple is created. Bypass this step in enviroments where
+ # where the named tuple is created. Bypass this step in environments where
# sys._getframe is not defined (Jython for example) or sys._getframe is not
# defined for arguments greater than 0 (IronPython).
try:
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
@@ -18,7 +18,7 @@
# These tests are compiled through "exec"
-# There should be atleast one test per statement
+# There should be at least one test per statement
exec_tests = [
# None
"None",
diff --git a/Lib/test/test_cookielib.py b/Lib/test/test_cookielib.py
--- a/Lib/test/test_cookielib.py
+++ b/Lib/test/test_cookielib.py
@@ -329,7 +329,7 @@
## commas and equals are commonly appear in the cookie value). This also
## means that if you fold multiple Set-Cookie header fields into one,
## comma-separated list, it'll be a headache to parse (at least my head
-## starts hurting everytime I think of that code).
+## starts hurting every time I think of that code).
## - Expires: You'll get all sorts of date formats in the expires,
## including emtpy expires attributes ("expires="). Be as flexible as you
## can, and certainly don't expect the weekday to be there; if you can't
diff --git a/Lib/test/test_datetime.py b/Lib/test/test_datetime.py
--- a/Lib/test/test_datetime.py
+++ b/Lib/test/test_datetime.py
@@ -124,7 +124,7 @@
self.assertEqual(derived.tzname(None), 'cookie')
#############################################################################
-# Base clase for testing a particular aspect of timedelta, time, date and
+# Base class for testing a particular aspect of timedelta, time, date and
# datetime comparisons.
class HarmlessMixedComparison:
diff --git a/Lib/test/test_normalization.py b/Lib/test/test_normalization.py
--- a/Lib/test/test_normalization.py
+++ b/Lib/test/test_normalization.py
@@ -57,7 +57,7 @@
c1,c2,c3,c4,c5 = [unistr(x) for x in line.split(';')[:-1]]
except RangeError:
# Skip unsupported characters;
- # try atleast adding c1 if we are in part1
+ # try at least adding c1 if we are in part1
if part == "@Part1":
try:
c1 = unistr(line.split(';')[0])
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -812,7 +812,7 @@
# Everywhere else they work ok, but on those machines, sometimes
# fail in one of the tests, sometimes in other. I have a linux, and
# the tests go ok.
-# If anybody has one of the problematic enviroments, please help!
+# If anybody has one of the problematic environments, please help!
# . Facundo
#
# def server(evt):
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -3443,7 +3443,7 @@
- Issue #1285086: Speed up ``urllib.quote()`` and urllib.unquote for simple
cases.
-- Issue #8688: Distutils now recalculates MANIFEST everytime.
+- Issue #8688: Distutils now recalculates MANIFEST every time.
- Issue #5099: The ``__del__()`` method of ``subprocess.Popen`` (and the methods
it calls) referenced global objects, causing errors to pop up during
@@ -6299,7 +6299,7 @@
- Issue #3547: Fixed ctypes structures bitfields of varying integer
sizes.
-- Issue #3879: A regression in urllib.getproxies_enviroment was fixed.
+- Issue #3879: A regression in urllib.getproxies_environment was fixed.
- Issue #3863: Disabled a unit test of fork being called from a thread
when running on platforms known to exhibit OS bugs when attempting that.
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -1455,7 +1455,7 @@
* Otherwise OpenSSL might read in too much data,
* eating clear text data that happens to be
* transmitted after the SSL shutdown.
- * Should be safe to call repeatedly everytime this
+ * Should be safe to call repeatedly every time this
* function is used and the shutdown_seen_zero != 0
* condition is met.
*/
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c
--- a/Modules/unicodedata.c
+++ b/Modules/unicodedata.c
@@ -520,7 +520,7 @@
while(stackptr) {
Py_UNICODE code = stack[--stackptr];
/* Hangul Decomposition adds three characters in
- a single step, so we need atleast that much room. */
+ a single step, so we need at least that much room. */
if (space < 3) {
Py_ssize_t newsize = PyString_GET_SIZE(result) + 10;
space += 10;
diff --git a/PC/_subprocess.c b/PC/_subprocess.c
--- a/PC/_subprocess.c
+++ b/PC/_subprocess.c
@@ -331,7 +331,7 @@
PyObject* values;
char* p;
- /* convert environment dictionary to windows enviroment string */
+ /* convert environment dictionary to windows environment string */
if (! PyMapping_Check(environment)) {
PyErr_SetString(
PyExc_TypeError, "environment must be dictionary or None");
diff --git a/PCbuild/readme.txt b/PCbuild/readme.txt
--- a/PCbuild/readme.txt
+++ b/PCbuild/readme.txt
@@ -262,7 +262,7 @@
In addition, you need the Visual Studio plugin for external C compilers,
from http://sf.net/projects/vsextcomp. The plugin will wrap cl.exe, to
locate the proper target compiler, and convert compiler options
-accordingly. The project files require atleast version 0.9.
+accordingly. The project files require at least version 0.9.
Building for AMD64
------------------
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list