]> 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:31:30 +0000 (01:31 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Sun, 25 Aug 2013 22:31:30 +0000 (01:31 +0300)
14 files changed:
Mac/BuildScript/build-installer.py
Modules/unicodedata.c
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

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 edc811e08111a5d9f751687be2e96d1199835d3a..6f9c7e8e83132173c968a038dea5aa16bd912753 100644 (file)
@@ -506,7 +506,7 @@ nfd_nfkd(PyObject *self, PyObject *input, int k)
 
     stackptr = 0;
     isize = PyUnicode_GET_SIZE(input);
-    /* Overallocate atmost 10 characters. */
+    /* Overallocate at most 10 characters. */
     space = (isize > 10 ? 10 : isize) + isize;
     result = PyUnicode_FromUnicode(NULL, space);
     if (!result)
index 666c48d199bafef6572030aa7759dc96d7411d1c..7ebc2369e38bc52d116ad829b086479cedf8ca6f 100755 (executable)
@@ -977,7 +977,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 e5a8b29bb950f7c0d0de620139a68387534b431b..8c6444cf5ad8669517826295f85a7e205a108d17 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 1208b67fe07defb2ef8cd566d4d0e17344a000b3..c0f50566b0dbc5b59499815bfb9c6ddf9fabb042 100644 (file)
@@ -62,7 +62,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 e12769d7d27c980cfb9d0ba1bb14af5bb2ef568b..b4bfdccc32cc30a5b7c4cc7fc1c1318dd6269fe6 100644 (file)
@@ -617,7 +617,7 @@ class PyDictObjectPtr(PyObjectPtr):
     def iteritems(self):
         '''
         Yields a sequence of (PyObjectPtr key, PyObjectPtr value) pairs,
-        analagous to dict.iteritems()
+        analogous to dict.iteritems()
         '''
         for i in safe_range(self.field('ma_mask') + 1):
             ep = self.field('ma_table') + i
index 8c9b9dc9a34170fe8f6f1f3afc1c0f30192cce1b..2502a109c043d11c7fef23c6c2b82db3fcecf090 100755 (executable)
@@ -144,7 +144,7 @@ def make(filename, outfile):
         # This is a message with plural forms
         elif l.startswith('msgid_plural'):
             if section != ID:
-                print >> sys.stderr, 'msgid_plural not preceeded by msgid on %s:%d' %\
+                print >> sys.stderr, 'msgid_plural not preceded by msgid on %s:%d' %\
                     (infile, lno)
                 sys.exit(1)
             l = l[12:]
index e02a3e2316f96a762ff28ec004b757d9853d7b5d..760471c37b23fd47605a69b7d6aa06e36d2215a9 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 6601be5fb5186f6619e9c97450328528c9108b86..fde317841e15a6e8740a09d930dd046e12ec8e2f 100644 (file)
@@ -458,7 +458,7 @@ class Application:
                 handler = getattr(self, handlername)
             except AttributeError:
                 if value == '':
-                    # count the number of occurances
+                    # count the number of occurrences
                     if values.has_key(optionname):
                         values[optionname] = values[optionname] + 1
                     else:
index 013add278e9acaeef1d42878c21d8eba1fa490cf..db1210dee223cc802502c675579e757e16d160e3 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 11a99a6afcab4ec01660d6484cfbc3836356a01c..fb597b59fd8683d2ab30f329d6bef20caa6c38c9 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 0ae4872003a0bfbd6943b6b18e4c4bbcb7ee3418..e613b656722bb2a8ae911c36710d5668c1975c36 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 2ed7a6667bdb5577ccc7ac99b8036e1c66710fb0..5487f1a74be8767fb3ba0404eb817cceff056ff3 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 7f6f191bbeb18750509cfaac215cf9a47acee0e1..850903a10007325aff7e16368578b28b2f01b246 100755 (executable)
@@ -135,7 +135,7 @@ def fix(filename):
     except os.error, msg:
         err('%s: rename failed (%r)\n' % (filename, msg))
         return 1
-    # Return succes
+    # Return success
     return 0
 
 def fixline(line):