]> granicus.if.org Git - python/commitdiff
#18803: fix more typos. Patch by Févry Thibault.
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 25 Aug 2013 22:32:56 +0000 (01:32 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Sun, 25 Aug 2013 22:32:56 +0000 (01:32 +0300)
17 files changed:
Mac/BuildScript/build-installer.py
Modules/unicodedata.c
PCbuild/vs9to10.py
Parser/asdl_c.py
Tools/freeze/checkextensions_win32.py
Tools/freeze/makefreeze.py
Tools/gdb/libpython.py
Tools/i18n/msgfmt.py
Tools/msi/msilib.py
Tools/pybench/CommandLine.py
Tools/pybench/systimes.py
Tools/pynche/DetailsViewer.py
Tools/scripts/fixnotice.py
Tools/scripts/ifdef.py
Tools/scripts/pathfix.py
Tools/stringbench/stringbench.py
Tools/unicode/makeunicodedata.py

index 004765ae5803f40832b593d68a5ee489dc39dd8b..ef822d585495ad74ec6fd6e8ec5df58f57e1538e 100755 (executable)
@@ -108,7 +108,7 @@ DEPSRC = os.path.expanduser('~/Universal/other-sources')
 ### There are some issues with the SDK selection below here,
 ### The resulting binary doesn't work on all platforms that
 ### it should. Always default to the 10.4u SDK until that
-### isue is resolved.
+### issue is resolved.
 ###
 ##if int(os.uname()[2].split('.')[0]) == 8:
 ##    # Explicitly use the 10.4u (universal) SDK when
@@ -1015,7 +1015,7 @@ def buildPython():
     os.chdir(curdir)
 
     if PYTHON_3:
-        # Remove the 'Current' link, that way we don't accidently mess
+        # Remove the 'Current' link, that way we don't accidentally mess
         # with an already installed version of python 2
         os.unlink(os.path.join(rootDir, 'Library', 'Frameworks',
                             'Python.framework', 'Versions', 'Current'))
index d89316a34701174f4efa18f4deb3a441d177c6f5..75c162656ed7dce43c03d5148df8056206739722 100644 (file)
@@ -507,7 +507,7 @@ nfd_nfkd(PyObject *self, PyObject *input, int k)
 
     stackptr = 0;
     isize = PyUnicode_GET_LENGTH(input);
-    /* Overallocate atmost 10 characters. */
+    /* Overallocate at most 10 characters. */
     space = (isize > 10 ? 10 : isize) + isize;
     osize = space;
     output = PyMem_Malloc(space * sizeof(Py_UCS4));
index 8bf832a3a73292dd32e46d52527c73a457624eee..eb7dab50b882a4b88daddd510ebc9eeb94c9227d 100644 (file)
@@ -1,4 +1,4 @@
-#Run this file after automatic convertsion of the VisualStudio 2008 solution by VisualStudio 2010.
+#Run this file after automatic conversion of the VisualStudio 2008 solution by VisualStudio 2010.
 #This can be done whenever the 2008 solution changes.
 #It will make the necessary cleanup and updates to the vcxproj files
 #the .props files need to be maintained by hand if the .vsprops files change
index e61aae24d124794cc514f58b2d7ac4b4cede7395..0b6c88cc7b68b3fba773e51f7931ca186452eaca 100755 (executable)
@@ -1010,7 +1010,7 @@ def has_sequence(types, doing_specialization):
 
 
 class StaticVisitor(PickleVisitor):
-    CODE = '''Very simple, always emit this static code.  Overide CODE'''
+    CODE = '''Very simple, always emit this static code.  Override CODE'''
 
     def visit(self, object):
         self.emit(self.CODE, 0, reflow=False)
index a41542f20ec971a0567984ea76d8bd39c135b32d..ee446e754aa605cced55e52abb710a6350823c7b 100644 (file)
@@ -3,7 +3,7 @@
 Under Windows it is unlikely the .obj files are of use, as special compiler options
 are needed (primarily to toggle the behavior of "public" symbols.
 
-I dont consider it worth parsing the MSVC makefiles for compiler options.  Even if
+I don't consider it worth parsing the MSVC makefiles for compiler options.  Even if
 we get it just right, a specific freeze application may have specific compiler
 options anyway (eg, to enable or disable specific functionality)
 
@@ -14,7 +14,7 @@ So my basic strategy is:
   your own).
 * This description can include:
   - The MSVC .dsp file for the extension.  The .c source file names
-    are extraced from there.
+    are extracted from there.
   - Specific compiler/linker options
   - Flag to indicate if Unicode compilation is expected.
 
index 4cd1e96990d981059accb202142056951327a70e..ef18ec7b2861a8b7666e9c6d2a066fa7f79274ff 100644 (file)
@@ -61,7 +61,7 @@ def makefreeze(base, dict, debug=0, entry_point=None, fail_import=()):
         outfp.write('\t{"%s", M_%s, %d},\n' % (mod, mangled, size))
     outfp.write('\n')
     # The following modules have a NULL code pointer, indicating
-    # that the prozen program should not search for them on the host
+    # that the frozen program should not search for them on the host
     # system. Importing them will *always* raise an ImportError.
     # The zero value size is never used.
     for mod in fail_import:
index 84d4fa31c4969f7e839567cd812fb9ad17ce6888..9f5e8b4e2c32f16cdbe7f76247c6cd0d8befe3a5 100644 (file)
@@ -632,7 +632,7 @@ class PyDictObjectPtr(PyObjectPtr):
     def iteritems(self):
         '''
         Yields a sequence of (PyObjectPtr key, PyObjectPtr value) pairs,
-        analagous to dict.iteritems()
+        analogous to dict.iteritems()
         '''
         keys = self.field('ma_keys')
         values = self.field('ma_values')
index 7b3a81ff93ac39945ccf49a11c528fa0a3eba773..cd90691bf126df9839acdd1127f2788d98437fce 100755 (executable)
@@ -154,7 +154,7 @@ def make(filename, outfile):
         # This is a message with plural forms
         elif l.startswith('msgid_plural'):
             if section != ID:
-                print('msgid_plural not preceeded by msgid on %s:%d' % (infile, lno),
+                print('msgid_plural not preceded by msgid on %s:%d' % (infile, lno),
                       file=sys.stderr)
                 sys.exit(1)
             l = l[12:]
index f44052ee20e71c766a54b3c288b8d6c170eae640..c208b9107494a23071fcf30a106216760f13eb8f 100644 (file)
@@ -305,7 +305,7 @@ def init_database(name, schema,
         t.create(db)
     # Fill the validation table
     add_data(db, "_Validation", schema._Validation_records)
-    # Initialize the summary information, allowing atmost 20 properties
+    # Initialize the summary information, allowing at most 20 properties
     si = db.GetSummaryInformation(20)
     si.SetProperty(PID_TITLE, "Installation Database")
     si.SetProperty(PID_SUBJECT, ProductName)
index 715bc49b58d1c23a20a02604ae188cdbbf631f0a..073cca0507bb19c3a30c16dd15cc4038bb235332 100644 (file)
@@ -462,7 +462,7 @@ class Application:
                 handler = getattr(self, handlername)
             except AttributeError:
                 if value == '':
-                    # count the number of occurances
+                    # count the number of occurrences
                     if optionname in values:
                         values[optionname] = values[optionname] + 1
                     else:
index 6bc7e80ef46b4ef39f3dd691d64d96ed7bb635db..5e00891feeda1a6f416a2087fcca87db598e7e02 100644 (file)
@@ -5,7 +5,7 @@
 
     This module implements various different strategies for measuring
     performance timings. It tries to choose the best available method
-    based on the platforma and available tools.
+    based on the platform and available tools.
 
     On Windows, it is recommended to have the Mark Hammond win32
     package installed. Alternatively, the Thomas Heller ctypes
index fdc79b749ca9d0106358db89517841dc8441238b..bed11f4f4efdf0ba56abb6ea5f92d25b1adec6f9 100644 (file)
@@ -26,7 +26,7 @@ option menu:
         other side.  Thus if red were at 238 and 25 were added to it, red
         would have the value 7.
 
-    Preseve Distance
+    Preserve Distance
         When the increment or decrement would send any of the tied variations
         out of bounds, all tied variations are wrapped as one, so as to
         preserve the distance between them.  Thus if green and blue were tied,
index aac86977088577fdad274246357f2ff637bd66a1..ad967f94781c2e32421e5a009382221e12c7488d 100755 (executable)
@@ -2,7 +2,7 @@
 
 """(Ostensibly) fix copyright notices in files.
 
-Actually, this sript will simply replace a block of text in a file from one
+Actually, this script will simply replace a block of text in a file from one
 string to another.  It will only do this once though, i.e. not globally
 throughout the file.  It writes a backup file and then does an os.rename()
 dance for atomicity.
index 46167ad8436322b3d2b2235921530b19af74ff2f..b1711ce5c16e1de4f1758bf104964767bfaeeff8 100755 (executable)
@@ -9,11 +9,11 @@
 # options.  On standard output it writes a copy of the input file(s)
 # minus those code sections that are suppressed by the selected
 # combination of defined/undefined symbols.  The #if(n)def/#else/#else
-# lines themselfs (if the #if(n)def tests for one of the mentioned
+# lines themselves (if the #if(n)def tests for one of the mentioned
 # names) are removed as well.
 
 # Features: Arbitrary nesting of recognized and unrecognized
-# preprocesor statements works correctly.  Unrecognized #if* commands
+# preprocessor statements works correctly.  Unrecognized #if* commands
 # are left in place, so it will never remove too much, only too
 # little.  It does accept whitespace around the '#' character.
 
index dd08e0aba3829947d711879c5ec166624ec3d628..13ca866a78d839c0cda6c5ce86653093d8305232 100755 (executable)
@@ -151,7 +151,7 @@ def fix(filename):
             except os.error as msg:
                 err('%s: reset of timestamp failed (%r)\n' % (filename, msg))
                 return 1
-    # Return succes
+    # Return success
     return 0
 
 def fixline(line):
index a0a21fa0b2e1657f268aa460d2d470c67ea57e2a..142b3cadc52613227bc107968bf10314a990cda7 100755 (executable)
@@ -1294,7 +1294,7 @@ def _get_big_s(STR):
     raise AssertionError
 
 # The older replace implementation counted all matches in
-# the string even when it only neeed to make one replacement.
+# the string even when it only needed to make one replacement.
 @bench('("A" + ("Z"*128*1024)).replace("A", "BB", 1)',
        'quick replace single character match', 10)
 def quick_replace_single_match(STR):
index d83cf634954d2a439fa7754a1eb07664ebd01e09..bc3d0cb746b7c3b05ef2a216dabb6a95e91e0345 100644 (file)
@@ -966,7 +966,7 @@ class UnicodeData:
             assert pua_index - NAME_ALIASES_START == len(self.aliases)
 
             self.named_sequences = []
-            # store named seqences in the PUA 1, in range U+F0100..,
+            # store named sequences in the PUA 1, in range U+F0100..,
             # in order to take advantage of the compression and lookup
             # algorithms used for the other characters.