]> granicus.if.org Git - python/commitdiff
Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
authorMartin Panter <vadmium+py@gmail.com>
Wed, 7 Sep 2016 12:03:06 +0000 (12:03 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Wed, 7 Sep 2016 12:03:06 +0000 (12:03 +0000)
25 files changed:
Include/pymath.h
Lib/distutils/tests/test_msvc9compiler.py
Lib/doctest.py
Lib/email/test/test_email.py
Lib/httplib.py
Lib/idlelib/idle_test/test_formatparagraph.py
Lib/test/test_datetime.py
Lib/test/test_descr.py
Lib/test/test_pep247.py
Lib/test/test_py3kwarn.py
Lib/test/test_urllib.py
Lib/test/test_urllib2_localnet.py
Lib/test/test_winreg.py
Mac/PythonLauncher/MyAppDelegate.m
Misc/HISTORY
Misc/NEWS
Modules/_ctypes/ctypes.h
Modules/_hashopenssl.c
Modules/_io/iobase.c
Modules/zipimport.c
Objects/codeobject.c
Objects/listsort.txt
Objects/longobject.c
Objects/stringlib/formatter.h
README

index d35c87c12c4b61c31930f032745210342752f701..b234f973f5e6dcde44e8bec0280d07fde6704cc3 100644 (file)
@@ -43,7 +43,7 @@ extern int finite(double);
 extern double copysign(double, double);
 #endif
 
-/* High precision defintion of pi and e (Euler)
+/* High precision definition of pi and e (Euler)
  * The values are taken from libc6's math.h.
  */
 #ifndef Py_MATH_PIl
index 16a95ad4d5b2f4d41cd9ceeb270c95a1a0435064..331c0f5d8427a51a1294ae42dd3f6bc81db595c4 100644 (file)
@@ -125,7 +125,7 @@ class msvc9compilerTestCase(support.TempdirManager,
         self.assertRaises(KeyError, Reg.get_value, 'xxx', 'xxx')
 
         # looking for values that should exist on all
-        # windows registeries versions.
+        # windows registry versions.
         path = r'Control Panel\Desktop'
         v = Reg.get_value(path, u'dragfullwindows')
         self.assertIn(v, (u'0', u'1', u'2'))
index 6811406b306bc64b2d5bf92c5eb0b7470b0b0fe0..fedf67011d921d02d765f09cc497552d1b941a96 100644 (file)
@@ -219,7 +219,7 @@ def _load_testfile(filename, package, module_relative):
     with open(filename, 'U') as f:
         return f.read(), filename
 
-# Use sys.stdout encoding for ouput.
+# Use sys.stdout encoding for output.
 _encoding = getattr(sys.__stdout__, 'encoding', None) or 'utf-8'
 
 def _indent(s, indent=4):
index b6be2a2ed0493661e74c9cfcf4cb463f2388dcde..4b4dee3d34644b623dd30ef6f9db8d4ba6f01999 100644 (file)
@@ -561,12 +561,12 @@ class TestMessageAPI(TestEmailBase):
 
     # Issue 5871: reject an attempt to embed a header inside a header value
     # (header injection attack).
-    def test_embeded_header_via_Header_rejected(self):
+    def test_embedded_header_via_Header_rejected(self):
         msg = Message()
         msg['Dummy'] = Header('dummy\nX-Injected-Header: test')
         self.assertRaises(Errors.HeaderParseError, msg.as_string)
 
-    def test_embeded_header_via_string_rejected(self):
+    def test_embedded_header_via_string_rejected(self):
         msg = Message()
         msg['Dummy'] = 'dummy\nX-Injected-Header: test'
         self.assertRaises(Errors.HeaderParseError, msg.as_string)
index 7223ba151271f16d0eedad83b49a0961b59fc674..f32fa4faa06ed8efa00578ab3ef34b12f0a88369 100644 (file)
@@ -242,7 +242,7 @@ _MAXHEADERS = 100
 #
 # VCHAR defined in http://tools.ietf.org/html/rfc5234#appendix-B.1
 
-# the patterns for both name and value are more leniant than RFC
+# the patterns for both name and value are more lenient than RFC
 # definitions to allow for backwards compatibility
 _is_legal_header_name = re.compile(r'\A[^:\s][^:\r\n]*\Z').match
 _is_illegal_header_value = re.compile(r'\n(?![ \t])|\r(?![ \t\n])').search
index 938110dc8ab614a874c062b6575fd8a23198eda4..068ae381c332f8f0f4adab2d849808aa2abc221b 100644 (file)
@@ -159,7 +159,7 @@ class FindTest(unittest.TestCase):
 class ReformatFunctionTest(unittest.TestCase):
     """Test the reformat_paragraph function without the editor window."""
 
-    def test_reformat_paragrah(self):
+    def test_reformat_paragraph(self):
         Equal = self.assertEqual
         reform = fp.reformat_paragraph
         hw = "O hello world"
index 1f7fb77685acc27d45b6d3f1d875101ec68e2e01..20abe74bbc1bf18e80da58a388430f3b4deea15d 100644 (file)
@@ -3343,7 +3343,7 @@ class Oddballs(unittest.TestCase):
         self.assertRaises(TypeError, lambda: as_date >= as_datetime)
         self.assertRaises(TypeError, lambda: as_datetime >= as_date)
 
-        # Neverthelss, comparison should work with the base-class (date)
+        # Nevertheless, comparison should work with the base-class (date)
         # projection if use of a date method is forced.
         self.assertTrue(as_date.__eq__(as_datetime))
         different_day = (as_date.day + 1) % 20 + 1
index 9bc114b26ab0283555954761cbd98c43b5a93f10..fc965f7e5ea137e982188302ec7aa3477c7bd23e 100644 (file)
@@ -684,7 +684,7 @@ class ClassPropertiesAndMethods(unittest.TestCase):
             self.fail("inheriting from ModuleType and str at the same time "
                       "should fail")
 
-    def test_multiple_inheritence(self):
+    def test_multiple_inheritance(self):
         # Testing multiple inheritance...
         class C(object):
             def __init__(self):
@@ -815,7 +815,7 @@ class ClassPropertiesAndMethods(unittest.TestCase):
         else:
             self.fail("new class with only classic bases - shouldn't be")
 
-    def test_diamond_inheritence(self):
+    def test_diamond_inheritance(self):
         # Testing multiple inheritance special cases...
         class A(object):
             def spam(self): return "A"
index 423d33383f8f96bc507da0be1329254c90edea92..7b06d0049d2d528934e6f50e5696b9c00f5c7878 100644 (file)
@@ -1,5 +1,5 @@
 """
-Test suite to check compilance with PEP 247, the standard API
+Test suite to check compliance with PEP 247, the standard API
 for hashing algorithms
 """
 
index b4e4e9d7116d5e3609b853b5a94b5ed707a09c29..efcd1d2f9d8447d3bf9ea303ed5ec5f2de69769f 100644 (file)
@@ -270,7 +270,7 @@ class TestPy3KWarnings(unittest.TestCase):
             class NoWarningOnlyHash(object):
                 def __hash__(self): pass
             self.assertEqual(len(w.warnings), 0)
-            # With an intermediate class in the heirarchy
+            # With an intermediate class in the hierarchy
             class DefinesAllThree(object):
                 def __cmp__(self, other): pass
                 def __eq__(self, other): pass
index 27a1d388458909f07d9f9f1696d4161279d810fe..7b1ef6a0b8f8cd97f989ca35ffa06a396fbb27a0 100644 (file)
@@ -1,4 +1,4 @@
-"""Regresssion tests for urllib"""
+"""Regression tests for urllib"""
 
 import collections
 import urllib
index bb82b26db1308ea00f30f174f1c760dd74ae54ea..51a95dc43738323f4273829bcdd349d7706ba5a7 100644 (file)
@@ -93,7 +93,7 @@ class BasicAuthHandler(BaseHTTPServer.BaseHTTPRequestHandler):
         BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
 
     def log_message(self, format, *args):
-        # Supress the HTTP Console log output
+        # Suppress the HTTP Console log output
         pass
 
     def do_HEAD(self):
index 8e3cdf3637011bf18a18e2c88b2816cffe590e7e..7db1f7384758362f1ade28ccfb00d7da4ba2a077 100644 (file)
@@ -174,7 +174,7 @@ class BaseWinregTests(unittest.TestCase):
         DeleteKey(key, "sub_key")
 
         try:
-            # Shouldnt be able to delete it twice!
+            # Shouldn't be able to delete it twice!
             DeleteKey(key, "sub_key")
             self.fail("Deleting the key twice succeeded")
         except EnvironmentError:
index e75fb06616b68d6a8cdf8d9f93a62ee9ec11a0a6..25779a2540a37e2c811480d7059d7986ac9e2f99 100644 (file)
@@ -34,7 +34,7 @@
 - (BOOL)shouldShowUI
 {
     // if this call comes before applicationDidFinishLaunching: we
-    // should terminate immedeately after starting the script.
+    // should terminate immediately after starting the script.
     if (!initial_action_done)
         should_terminate = YES;
     initial_action_done = YES;
index a2f58413b0f392d6fca23a9e675814c8878d5f68..fceda8a445529471e3e58c485b887a569e318d6d 100644 (file)
@@ -1995,7 +1995,7 @@ Library
 - Bug #947906: An object oriented interface has been added to the calendar
   module. It's possible to generate HTML calendar now and the module can be
   called as a script (e.g. via ``python -mcalendar``). Localized month and
-  weekday names can be ouput (even if an exotic encoding is used) using
+  weekday names can be output (even if an exotic encoding is used) using
   special classes that use unicode.
 
 Build
@@ -2378,7 +2378,7 @@ Library
   ``True`` for ``!=``, and raises ``TypeError`` for other comparison
   operators.  Because datetime is a subclass of date, comparing only the
   base class (date) members can still be done, if that's desired, by
-  forcing using of the approprate date method; e.g.,
+  forcing using of the appropriate date method; e.g.,
   ``a_date.__eq__(a_datetime)`` is true if and only if the year, month
   and day members of ``a_date`` and ``a_datetime`` are equal.
 
@@ -12858,7 +12858,7 @@ Netscape on Windows/Mac).
 
 - copy.py: Make sure the objects returned by __getinitargs__() are
 kept alive (in the memo) to avoid a certain kind of nasty crash.  (Not
-easily reproducable because it requires a later call to
+easily reproducible because it requires a later call to
 __getinitargs__() to return a tuple that happens to be allocated at
 the same address.)
 
@@ -16490,7 +16490,7 @@ bullet-proof, after reports of (minor) trouble on certain platforms.
 There is now a script to patch Makefile and config.c to add a new
 optional built-in module: Addmodule.sh.  Read the script before using!
 
-Useing Addmodule.sh, all optional modules can now be configured at
+Using Addmodule.sh, all optional modules can now be configured at
 compile time using Configure.py, so there are no modules left that
 require dynamic loading.
 
@@ -16921,9 +16921,9 @@ SOCKET: symbolic constant definitions for socket options
 
 SUNAUDIODEV: symbolic constant definitions for sunaudiodef (sun only)
 
-SV: symbolic constat definitions for sv (sgi only)
+SV: symbolic constant definitions for sv (sgi only)
 
-CD: symbolic constat definitions for cd (sgi only)
+CD: symbolic constant definitions for cd (sgi only)
 
 
 New demos
index cc570658bfcf209cd868fed1b50db892d51ceec1..1fc6135d0ef60447178e3b650ff2cebe9219098c 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2516,7 +2516,7 @@ Library
 
 - Issue #18709: Fix CVE-2013-4238. The SSL module now handles NULL bytes
   inside subjectAltName correctly. Formerly the module has used OpenSSL's
-  GENERAL_NAME_print() function to get the string represention of ASN.1
+  GENERAL_NAME_print() function to get the string representation of ASN.1
   strings for ``rfc822Name`` (email), ``dNSName`` (DNS) and
   ``uniformResourceIdentifier`` (URI).
 
@@ -3147,7 +3147,7 @@ Library
   using the same sys.flags as the current process.  Initial patch by
   Sergey Mezentsev.
 
-- Issue #8862: Fixed curses cleanup when getkey is interrputed by a signal.
+- Issue #8862: Fixed curses cleanup when getkey is interrupted by a signal.
 
 - Issue #9090: When a socket with a timeout fails with EWOULDBLOCK or EAGAIN,
   retry the select() loop instead of bailing out.  This is because select()
@@ -3571,7 +3571,7 @@ Library
 - Issue #14829: Fix bisect issues under 64-bit Windows.
 
 - Issue #14777: tkinter may return undecoded UTF-8 bytes as a string when
-  accessing the Tk clipboard.  Modify clipboad_get() to first request type
+  accessing the Tk clipboard.  Modify clipboard_get() to first request type
   UTF8_STRING when no specific type is requested in an X11 windowing
   environment, falling back to the current default type STRING if that fails.
   Original patch by Thomas Kluyver.
index 394534bff53fc82ae515ae2274f0450aaa08ddf5..b21fe92b044233f2aada0404b2d5292ac0b29ee6 100644 (file)
@@ -276,7 +276,7 @@ typedef struct {
  StgDictObject function to a generic one.
 
  Currently, PyCFuncPtr types have 'converters' and 'checker' entries in their
- type dict.  They are only used to cache attributes from other entries, whihc
+ type dict.  They are only used to cache attributes from other entries, which
  is wrong.
 
  One use case is the .value attribute that all simple types have.  But some
index 443a486a4572687070beb0b8612f98eb37a1e0e6..75b3a3d3b6c5d41faaa95b1672e23ecf1e8be770 100644 (file)
@@ -820,7 +820,7 @@ generate_hash_name_list(void)
 /*
  *  This macro generates constructor function definitions for specific
  *  hash algorithms.  These constructors are much faster than calling
- *  the generic one passing it a python string and are noticably
+ *  the generic one passing it a python string and are noticeably
  *  faster than calling a python new() wrapper.  Thats important for
  *  code that wants to make hashes of a bunch of small strings.
  */
index 5f7b3457adc34ccd9b6d67bbd581456f8efb02d9..2fec7e87e23beeecb9790f9c556b3ad3ca159456 100644 (file)
@@ -71,7 +71,7 @@ iobase_unsupported(const char *message)
     return NULL;
 }
 
-/* Positionning */
+/* Positioning */
 
 PyDoc_STRVAR(iobase_seek_doc,
     "Change stream position.\n"
index ee44cab818059b4a0645dfb157f676fc64afaef1..83629839d19c88f2dfe052bb502b695f2d28df63 100644 (file)
@@ -1096,7 +1096,7 @@ unmarshal_code(const char *pathname, PyObject *data, time_t mtime)
     return code;
 }
 
-/* Replace any occurances of "\r\n?" in the input string with "\n".
+/* Replace any occurrences of "\r\n?" in the input string with "\n".
    This converts DOS and Mac line endings to Unix line endings.
    Also append a trailing "\n" to be compatible with
    PyParser_SimpleParseFile(). Returns a new reference. */
index c104098268764009158ed8e516eb449aa958021a..0643c3622c1732187fd981cbff061f203ba91d5d 100644 (file)
@@ -690,7 +690,7 @@ _PyCode_CheckLineNumber(PyCodeObject* co, int lasti, PyAddrPair *bounds)
     /* possible optimization: if f->f_lasti == instr_ub
        (likely to be a common case) then we already know
        instr_lb -- if we stored the matching value of p
-       somwhere we could skip the first while loop. */
+       somewhere we could skip the first while loop. */
 
     /* See lnotab_notes.txt for the description of
        co_lnotab.  A point to remember: increments to p
index 08fef96bdf0bc89ac7cba74c6b3fa566a4c8dfbf..c6fcb34a0bfa0ea34791390395baf5054d2400cb 100644 (file)
@@ -694,7 +694,7 @@ search doesn't reduce the quadratic data movement costs.
 
 But in CPython's case, comparisons are extraordinarily expensive compared to
 moving data, and the details matter.  Moving objects is just copying
-pointers.  Comparisons can be arbitrarily expensive (can invoke arbitary
+pointers.  Comparisons can be arbitrarily expensive (can invoke arbitrary
 user-supplied Python code), but even in simple cases (like 3 < 4) _all_
 decisions are made at runtime:  what's the type of the left comparand?  the
 type of the right?  do they need to be coerced to a common type?  where's the
index de2b1399bf0152cfad9ba3713401391a186ac52e..b87546eb6cb45fb94caac2f68f90b0c8988c782b 100644 (file)
@@ -211,7 +211,7 @@ PyLong_FromDouble(double dval)
 /* Checking for overflow in PyLong_AsLong is a PITA since C doesn't define
  * anything about what happens when a signed integer operation overflows,
  * and some compilers think they're doing you a favor by being "clever"
- * then.  The bit pattern for the largest postive signed long is
+ * then.  The bit pattern for the largest positive signed long is
  * (unsigned long)LONG_MAX, and for the smallest negative signed long
  * it is abs(LONG_MIN), which we could write -(unsigned long)LONG_MIN.
  * However, some other compilers warn about applying unary minus to an
index 1ac6277d4736f9a3f32dc83e4aa3942f42609f9b..70f574c030fcfd0686da5f93f16e6c40c0bb4b2d 100644 (file)
@@ -141,7 +141,7 @@ typedef struct {
 
 
 #if 0
-/* Occassionally useful for debugging. Should normally be commented out. */
+/* Occasionally useful for debugging. Should normally be commented out. */
 static void
 DEBUG_PRINT_FORMAT_SPEC(InternalFormatSpec *format)
 {
diff --git a/README b/README
index 9b27c3291554f1b2107207ba80dd3ba31f618d7a..778fdf9e0099ad15bfd4f3348c2253684924c444 100644 (file)
--- a/README
+++ b/README
@@ -207,7 +207,7 @@ workloads, as it has profiling instructions embedded inside.
 After this instrumented version of the interpreter is built, the Makefile
 will automatically run a training workload. This is necessary in order to
 profile the interpreter execution. Note also that any output, both stdout
-and stderr, that may appear at this step is supressed.
+and stderr, that may appear at this step is suppressed.
 
 Finally, the last step is to rebuild the interpreter, using the information
 collected in the previous one. The end result will be a Python binary