summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-08-17 13:57:41 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-08-17 13:57:41 (GMT)
commit85a8629d2134969fc9c35b56509d3a76d9dccecf (patch)
tree6c124696b1ee60500341b94040d1055527c05991
parentb5bc353b8893461b0ecdf0e4bc2b299ef2b19bc0 (diff)
downloadcpython-85a8629d2134969fc9c35b56509d3a76d9dccecf.zip
cpython-85a8629d2134969fc9c35b56509d3a76d9dccecf.tar.gz
cpython-85a8629d2134969fc9c35b56509d3a76d9dccecf.tar.bz2
#18466: fix more typos. Patch by FĂ©vry Thibault.
-rw-r--r--Include/datetime.h2
-rw-r--r--Lib/collections/__init__.py2
-rw-r--r--Lib/test/datetimetester.py2
-rw-r--r--Lib/test/test_ast.py2
-rw-r--r--Lib/test/test_http_cookiejar.py2
-rw-r--r--Lib/test/test_normalization.py2
-rw-r--r--Lib/test/test_urllib.py2
-rw-r--r--Misc/HISTORY2
-rw-r--r--Modules/_ssl.c2
-rw-r--r--Modules/_winapi.c2
-rw-r--r--Modules/unicodedata.c2
-rw-r--r--PCbuild/readme.txt2
12 files changed, 12 insertions, 12 deletions
diff --git a/Include/datetime.h b/Include/datetime.h
index 41e3bcf..06cbc4a 100644
--- a/Include/datetime.h
+++ b/Include/datetime.h
@@ -42,7 +42,7 @@ typedef struct
typedef struct
{
- PyObject_HEAD /* a pure abstract base clase */
+ PyObject_HEAD /* a pure abstract base class */
} PyDateTime_TZInfo;
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
index 254409b..d737295 100644
--- a/Lib/collections/__init__.py
+++ b/Lib/collections/__init__.py
@@ -375,7 +375,7 @@ def namedtuple(typename, field_names, verbose=False, rename=False):
print(result._source)
# 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/datetimetester.py b/Lib/test/datetimetester.py
index 931ef6f..3226bce 100644
--- a/Lib/test/datetimetester.py
+++ b/Lib/test/datetimetester.py
@@ -250,7 +250,7 @@ class TestTimeZone(unittest.TestCase):
t.replace(tzinfo=tz).dst())
#############################################################################
-# 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_ast.py b/Lib/test/test_ast.py
index dc24126..6352888 100644
--- a/Lib/test/test_ast.py
+++ b/Lib/test/test_ast.py
@@ -22,7 +22,7 @@ def to_tuple(t):
# 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_http_cookiejar.py b/Lib/test/test_http_cookiejar.py
index 5575bff..143ac8a 100644
--- a/Lib/test/test_http_cookiejar.py
+++ b/Lib/test/test_http_cookiejar.py
@@ -374,7 +374,7 @@ class CookieTests(unittest.TestCase):
## 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_normalization.py b/Lib/test/test_normalization.py
index e3e2560..28ede34 100644
--- a/Lib/test/test_normalization.py
+++ b/Lib/test/test_normalization.py
@@ -59,7 +59,7 @@ class NormalizationTest(unittest.TestCase):
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
index a2ea497..7a34a05 100644
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -1218,7 +1218,7 @@ class URLopener_Tests(unittest.TestCase):
# 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/HISTORY b/Misc/HISTORY
index 8327dca..01c635b 100644
--- a/Misc/HISTORY
+++ b/Misc/HISTORY
@@ -2806,7 +2806,7 @@ Library
- Issue #1285086: Speed up urllib.parse functions: quote, quote_from_bytes,
unquote, unquote_to_bytes.
-- Issue #8688: Distutils now recalculates MANIFEST everytime.
+- Issue #8688: Distutils now recalculates MANIFEST every time.
- Issue #8477: ssl.RAND_egd() and ssl._test_decode_cert() support str with
surrogates and bytes for the filename.
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 4a72342..9f67bfe 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -1564,7 +1564,7 @@ static PyObject *PySSL_SSLshutdown(PySSLSocket *self)
* 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/_winapi.c b/Modules/_winapi.c
index 1074891..c53d55a 100644
--- a/Modules/_winapi.c
+++ b/Modules/_winapi.c
@@ -489,7 +489,7 @@ getenvironment(PyObject* environment)
Py_UCS4 *buffer = NULL, *p, *end;
PyObject *keys, *values, *res;
- /* 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/Modules/unicodedata.c b/Modules/unicodedata.c
index 27fadb7..d89316a 100644
--- a/Modules/unicodedata.c
+++ b/Modules/unicodedata.c
@@ -524,7 +524,7 @@ nfd_nfkd(PyObject *self, PyObject *input, int k)
while(stackptr) {
Py_UCS4 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_UCS4 *new_output;
osize += 10;
diff --git a/PCbuild/readme.txt b/PCbuild/readme.txt
index 89fca3e..8acd152 100644
--- a/PCbuild/readme.txt
+++ b/PCbuild/readme.txt
@@ -265,7 +265,7 @@ SDK, in particular the 64-bit support. This includes an Itanium compiler
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
------------------