]> granicus.if.org Git - python/commitdiff
#18466: fix more typos. Patch by FĂ©vry Thibault.
authorEzio Melotti <ezio.melotti@gmail.com>
Sat, 17 Aug 2013 13:57:41 +0000 (16:57 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Sat, 17 Aug 2013 13:57:41 +0000 (16:57 +0300)
12 files changed:
Include/datetime.h
Lib/collections/__init__.py
Lib/test/datetimetester.py
Lib/test/test_ast.py
Lib/test/test_http_cookiejar.py
Lib/test/test_normalization.py
Lib/test/test_urllib.py
Misc/HISTORY
Modules/_ssl.c
Modules/_winapi.c
Modules/unicodedata.c
PCbuild/readme.txt

index 41e3bcf865c9e448fde8be531a99c7f39fabccb3..06cbc4abbd60e2663041aebc87dfa6c93b190565 100644 (file)
@@ -42,7 +42,7 @@ typedef struct
 
 typedef struct
 {
-    PyObject_HEAD               /* a pure abstract base clase */
+    PyObject_HEAD               /* a pure abstract base class */
 } PyDateTime_TZInfo;
 
 
index 254409b4f28f197c0ed0415bbb95efeb70a2a4bf..d737295dd13e8c2ce5f067d33fa4d7fea3ab8ca3 100644 (file)
@@ -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:
index 931ef6fc03d4554fe8a2523b5f36fc029c75b867..3226bce7dad032633254a1d0ee22081cb8bf05b9 100644 (file)
@@ -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:
index dc24126b2194a0c63439703c865018cfe4208618..63528885e9d01565a6c61599b2a6263ce503899e 100644 (file)
@@ -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",
index 5575bffc9f4b9f0b7a67ed527be25dcadcfc2c35..143ac8a936320d07cd5e26029f11dc04648a01e7 100644 (file)
@@ -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
index e3e25603564185b2cc6c34fc860b8df03175070f..28ede34cd7ea94a61a862511e2fa08420d583443 100644 (file)
@@ -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])
index a2ea497184d78b32ccaed549848125226b812882..7a34a05d05851ea18ecb2d8b4407e6eda2cbc7c1 100644 (file)
@@ -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):
index 8327dca44d1826963c1ec71d2d4640002932cecd..01c635b22383bd7f185c64d1bc83c3cc2a0b3b97 100644 (file)
@@ -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.
index 4a7234202bab51c2c9b801fd731f91966c3d5ed8..9f67bfe55bc48124efad3932b8dea3148076e76b 100644 (file)
@@ -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.
          */
index 1074891ef11aa4ae4d826088b97f6960d3d43722..c53d55a535fe73e63c9641927d8441bb0dc2e168 100644 (file)
@@ -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");
index 27fadb70197c46f2bc28eddf28f0d9691122b34d..d89316a34701174f4efa18f4deb3a441d177c6f5 100644 (file)
@@ -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;
index 89fca3e2cf7ac707b9d2922f0608b4209bfcd6b4..8acd1526f61c6198da3326b5e347656ae226c210 100644 (file)
@@ -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
 ------------------