Skip to content

Commit

Permalink
Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in ei…
Browse files Browse the repository at this point in the history
…ther

comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").

There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
  • Loading branch information
Yhg1s committed Jul 16, 2000
1 parent c533e4a commit 7e47402
Show file tree
Hide file tree
Showing 102 changed files with 184 additions and 184 deletions.
2 changes: 1 addition & 1 deletion Demo/sgi/gl/kites.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def viewobj (r, s, t, mat) :
popmatrix()

#
# makeobj : the contructor of the object
# makeobj : the constructor of the object
#
def mkobj () :
v0 = (-5.0 ,0.0, 0.0)
Expand Down
4 changes: 2 additions & 2 deletions Demo/sgi/video/OldVcopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ def report(time, iframe):
print 'Frame', iframe, ': t =', time

def usage():
sys.stderr.write('usage: Vcopy [-t type] [-m treshold] [-a] infile outfile\n')
sys.stderr.write('usage: Vcopy [-t type] [-m threshold] [-a] infile outfile\n')
sys.stderr.write('-t Convert to other type\n')
sys.stderr.write('-a Automatic\n')
sys.stderr.write('-m Convert grey to mono with treshold\n')
sys.stderr.write('-m Convert grey to mono with threshold\n')
sys.stderr.write('-d Convert grey to mono with dithering\n')
sys.exit(2)

Expand Down
2 changes: 1 addition & 1 deletion Demo/sgi/video/Vrec.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def usage():
print '-g bits : greyscale (2, 4 or 8 bits)'
print '-G : 2-bit greyscale dithered'
print '-m : monochrome dithered'
print '-M value : monochrome tresholded with value'
print '-M value : monochrome thresholded with value'
print '-f : Capture fields (in stead of frames)'
print '-P frames : preallocate space for "frames" frames'
print 'moviefile : here goes the movie data (default film.video)'
Expand Down
2 changes: 1 addition & 1 deletion Demo/sgi/video/Vrecb.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def usage():
print '-g bits : greyscale (2, 4 or 8 bits)'
print '-G : 2-bit greyscale dithered'
print '-m : monochrome dithered'
print '-M value : monochrome tresholded with value'
print '-M value : monochrome thresholded with value'
print '-f : Capture fields (instead of frames)'
print '-n number : Capture this many frames (default 60)'
print '-N memsize : Capture frames fitting in this many kbytes'
Expand Down
2 changes: 1 addition & 1 deletion Include/abstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
DL_IMPORT(PyObject *) PySequence_Concat(PyObject *o1, PyObject *o2);

/*
Return the concatination of o1 and o2 on success, and NULL on
Return the concatenation of o1 and o2 on success, and NULL on
failure. This is the equivalent of the Python
expression: o1+o2.
Expand Down
2 changes: 1 addition & 1 deletion Include/cStringIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
*/

/* Basic fuctions to manipulate cStringIO objects from C */
/* Basic functions to manipulate cStringIO objects from C */

static struct PycStringIO_CAPI {

Expand Down
4 changes: 2 additions & 2 deletions Include/cobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extern DL_IMPORT(PyTypeObject) PyCObject_Type;
#define PyCObject_Check(op) ((op)->ob_type == &PyCObject_Type)

/* Create a PyCObject from a pointer to a C object and an optional
destrutor function. If the second argument is non-null, then it
destructor function. If the second argument is non-null, then it
will be called with the first argument if and when the PyCObject is
destroyed.
Expand All @@ -38,7 +38,7 @@ PyCObject_FromVoidPtr(void *cobj, void (*destruct)(void*));


/* Create a PyCObject from a pointer to a C object, a description object,
and an optional destrutor function. If the third argument is non-null,
and an optional destructor function. If the third argument is non-null,
then it will be called with the first and second arguments if and when
the PyCObject is destroyed.
*/
Expand Down
2 changes: 1 addition & 1 deletion Include/longintrepr.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ typedef BASE_TWODIGITS_TYPE stwodigits; /* signed variant of twodigits */
In a normalized number, ob_digit[abs(ob_size)-1] (the most significant
digit) is never zero. Also, in all cases, for all valid i,
0 <= ob_digit[i] <= MASK.
The allocation fuction takes care of allocating extra memory
The allocation function takes care of allocating extra memory
so that ob_digit[0] ... ob_digit[abs(ob_size)-1] are actually available. */

struct _longobject {
Expand Down
2 changes: 1 addition & 1 deletion Include/modsupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ extern DL_IMPORT(PyObject *) Py_VaBuildValue(char *, va_list);
#define PYTHON_API_STRING "1009"
/* The API version is maintained (independently from the Python version)
so we can detect mismatches between the interpreter and dynamically
loaded modules. These are diagnosticised by an error message but
loaded modules. These are diagnosed by an error message but
the module is still loaded (because the mismatch can only be tested
after loading the module). The error message is intended to
explain the core dump a few seconds later.
Expand Down
6 changes: 3 additions & 3 deletions Include/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ and the type pointer. The actual memory allocated for an object
contains other data that can only be accessed after casting the pointer
to a pointer to a longer structure type. This longer type must start
with the reference count and type fields; the macro PyObject_HEAD should be
used for this (to accomodate for future changes). The implementation
used for this (to accommodate for future changes). The implementation
of a particular object type can cast the object pointer to the proper
type and back.
Expand Down Expand Up @@ -326,7 +326,7 @@ The macros Py_INCREF(op) and Py_DECREF(op) are used to increment or decrement
reference counts. Py_DECREF calls the object's deallocator function; for
objects that don't contain references to other objects or heap memory
this can be the standard function free(). Both macros can be used
whereever a void expression is allowed. The argument shouldn't be a
wherever a void expression is allowed. The argument shouldn't be a
NIL pointer. The macro _Py_NewReference(op) is used only to initialize
reference counts to 1; it is defined here for convenience.
Expand Down Expand Up @@ -518,7 +518,7 @@ times.
redefinition for better locality and less overhead.
Objects that want to be recursion safe need to use
the macroes
the macro's
Py_TRASHCAN_SAFE_BEGIN(name)
and
Py_TRASHCAN_SAFE_END(name)
Expand Down
4 changes: 2 additions & 2 deletions Include/unicodeobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ extern DL_IMPORT(PyObject*) PyUnicode_AsUTF16String(
Note that Py_UNICODE data is being interpreted as UTF-16 reduced to
UCS-2. This trick makes it possible to add full UTF-16 capabilities
at a later point without comprimising the APIs.
at a later point without compromising the APIs.
*/

Expand Down Expand Up @@ -815,7 +815,7 @@ extern DL_IMPORT(int) PyUnicode_Compare(
PyObject *right /* Right string */
);

/* Apply a argument tuple or dictionar to a format string and return
/* Apply a argument tuple or dictionary to a format string and return
the resulting Unicode string. */

extern DL_IMPORT(PyObject *) PyUnicode_Format(
Expand Down
2 changes: 1 addition & 1 deletion Lib/UserList.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class UserList:
def __init__(self, initlist=None):
self.data = []
if initlist is not None:
# XXX should this accept an arbitary sequence?
# XXX should this accept an arbitrary sequence?
if type(initlist) == type(self.data):
self.data[:] = initlist
elif isinstance(initlist, UserList):
Expand Down
2 changes: 1 addition & 1 deletion Lib/aifc.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
close() -- close the instance (make it unusable)
The position returned by tell(), the position given to setpos() and
the position of marks are all compatible and have nothing to do with
the actual postion in the file.
the actual position in the file.
The close() method is called automatically when the class instance
is destroyed.
Expand Down
2 changes: 1 addition & 1 deletion Lib/asynchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def pop (self):
## return result

# yes, this is about twice as fast, but still seems
# to be neglible CPU. The previous could do about 290
# to be negligible CPU. The previous could do about 290
# searches/sec. the new one about 555/sec.

import regex
Expand Down
2 changes: 1 addition & 1 deletion Lib/binhex.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def openrsrc(name, *mode):

else:
#
# Glue code for non-macintosh useage
# Glue code for non-macintosh usage
#

class FInfo:
Expand Down
12 changes: 6 additions & 6 deletions Lib/cgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
If the submitted form data contains more than one field with the same
name, the object retrieved by form[key] is not a (Mini)FieldStorage
instance but a list of such instances. If you are expecting this
possibility (i.e., when your HTML form comtains multiple fields with
possibility (i.e., when your HTML form contains multiple fields with
the same name), use the type() function to determine whether you have
a single instance or a list of instances. For example, here's code
that concatenates any number of username fields, separated by commas:
Expand All @@ -106,7 +106,7 @@
If a field represents an uploaded file, the value attribute reads the
entire file in memory as a string. This may not be what you want. You can
test for an uploaded file by testing either the filename attribute or the
file attribute. You can then read the data at leasure from the file
file attribute. You can then read the data at leisure from the file
attribute:
fileitem = form["userfile"]
Expand Down Expand Up @@ -500,7 +500,7 @@ def parse(fp=None, environ=os.environ, keep_blank_values=0, strict_parsing=0):
keep_blank_values: flag indicating whether blank values in
URL encoded forms should be treated as blank strings.
A true value inicates that blanks should be retained as
A true value indicates that blanks should be retained as
blank strings. The default false value indicates that
blank values are to be ignored and treated as if they were
not included.
Expand Down Expand Up @@ -551,7 +551,7 @@ def parse_qs(qs, keep_blank_values=0, strict_parsing=0):
keep_blank_values: flag indicating whether blank values in
URL encoded queries should be treated as blank strings.
A true value inicates that blanks should be retained as
A true value indicates that blanks should be retained as
blank strings. The default false value indicates that
blank values are to be ignored and treated as if they were
not included.
Expand All @@ -578,7 +578,7 @@ def parse_qsl(qs, keep_blank_values=0, strict_parsing=0):
keep_blank_values: flag indicating whether blank values in
URL encoded queries should be treated as blank strings.
A true value inicates that blanks should be retained as
A true value indicates that blanks should be retained as
blank strings. The default false value indicates that
blank values are to be ignored and treated as if they were
not included.
Expand Down Expand Up @@ -806,7 +806,7 @@ def __init__(self, fp=None, headers=None, outerboundary="",
keep_blank_values: flag indicating whether blank values in
URL encoded forms should be treated as blank strings.
A true value inicates that blanks should be retained as
A true value indicates that blanks should be retained as
blank strings. The default false value indicates that
blank values are to be ignored and treated as if they were
not included.
Expand Down
4 changes: 2 additions & 2 deletions Lib/codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def reset(self):
""" Resets the codec buffers used for keeping state.
Note that no stream repositioning should take place.
This method is primarely intended to be able to recover
This method is primarily intended to be able to recover
from decoding errors.
"""
Expand All @@ -295,7 +295,7 @@ class StreamReaderWriter:
work in both read and write modes.
The design is such that one can use the factory functions
returned by the codec.lookup() function to contruct the
returned by the codec.lookup() function to construct the
instance.
"""
Expand Down
2 changes: 1 addition & 1 deletion Lib/dos-8x3/multifil.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
The latter sequence may be used recursively at (A).
It is also allowed to use multiple push()...pop() sequences.
If seekable is given as 0, the class code will not do the bookeeping
If seekable is given as 0, the class code will not do the bookkeeping
it normally attempts in order to make seeks relative to the beginning of the
current file part. This may be useful when using MultiFile with a non-
seekable stream object.
Expand Down
2 changes: 1 addition & 1 deletion Lib/dos-8x3/rlcomple.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def attr_matches(self, text):
"""Compute matches when text contains a dot.
Assuming the text is of the form NAME.NAME....[NAME], and is
evaluabable in the globals of __main__, it will be evaluated
evaluatable in the globals of __main__, it will be evaluated
and its attributes (as revealed by dir()) are used as possible
completions. (For class instances, class members are are also
considered.)
Expand Down
2 changes: 1 addition & 1 deletion Lib/dos-8x3/sre_comp.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
if len(array.array(WORDSIZE, [0]).tostring()) == _sre.getcodesize():
break
else:
raise RuntimeError, "cannot find a useable array type"
raise RuntimeError, "cannot find a usable array type"

def _compile(code, pattern, flags):
# internal: compile a (sub)pattern
Expand Down
2 changes: 1 addition & 1 deletion Lib/dos-8x3/stringol.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def join(words, sep = ' '):
"""join(list [,sep]) -> string
Return a string composed of the words in list, with
intervening occurences of sep. The default separator is a
intervening occurrences of sep. The default separator is a
single space.
(joinfields and join are synonymous)
Expand Down
2 changes: 1 addition & 1 deletion Lib/dos-8x3/test_ima.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def main(use_rgbimg=1):
image = imageop.grey2rgb(greyimage, width, height)

# Convert a 8-bit deep greyscale image to a 1-bit deep image by
# tresholding all the pixels. The resulting image is tightly packed
# thresholding all the pixels. The resulting image is tightly packed
# and is probably only useful as an argument to mono2grey.
if verbose:
print 'grey2mono'
Expand Down
4 changes: 2 additions & 2 deletions Lib/dos-8x3/threadst.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import thread
# Start empty thread to initialise thread mechanics (and global lock!)
# Start empty thread to initialize thread mechanics (and global lock!)
# This thread will finish immediately thus won't make much influence on
# test results by itself, only by that fact that it initialises global lock
# test results by itself, only by that fact that it initializes global lock
thread.start_new_thread(lambda : 1, ())

import test.pystone
Expand Down
2 changes: 1 addition & 1 deletion Lib/dos-8x3/tracebac.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def format_exception(etype, value, tb, limit = None):
have the same meaning as the corresponding arguments to
print_exception(). The return value is a list of strings, each
ending in a newline and some containing internal newlines. When
these lines are contatenated and printed, exactly the same text is
these lines are concatenated and printed, exactly the same text is
printed as does print_exception()."""
if tb:
list = ['Traceback (most recent call last):\n']
Expand Down
2 changes: 1 addition & 1 deletion Lib/dos-8x3/userlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class UserList:
def __init__(self, initlist=None):
self.data = []
if initlist is not None:
# XXX should this accept an arbitary sequence?
# XXX should this accept an arbitrary sequence?
if type(initlist) == type(self.data):
self.data[:] = initlist
elif isinstance(initlist, UserList):
Expand Down
4 changes: 2 additions & 2 deletions Lib/encodings/cp856.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ def getregentry():
0x00d0: None, # UNDEFINED
0x00d1: None, # UNDEFINED
0x00d2: None, # UNDEFINED
0x00d3: None, # UNDEFINEDS
0x00d3: None, # UNDEFINED
0x00d4: None, # UNDEFINED
0x00d5: None, # UNDEFINED
0x00d6: None, # UNDEFINEDE
0x00d6: None, # UNDEFINED
0x00d7: None, # UNDEFINED
0x00d8: None, # UNDEFINED
0x00d9: 0x2518, # BOX DRAWINGS LIGHT UP AND LEFT
Expand Down
2 changes: 1 addition & 1 deletion Lib/lib-old/Para.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def getlength(self):
#
# Tab to a given position (relative to the current left indent):
# remove all stretch, add fixed space up to the new indent.
# If the current position is already beying the tab stop,
# If the current position is already at the tab stop,
# don't add any new space (but still remove the stretch)
def tabto(self, tab):
total = 0
Expand Down
2 changes: 1 addition & 1 deletion Lib/lib-old/ni.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
(2) A package's *import domain*, contained in the per-package variable
__domain__, defines a list of *packages* that are searched (using
their respective module search paths) to satisfy imports. It is
initialized to the list cosisting of the package itself, its parent
initialized to the list consisting of the package itself, its parent
package, its parent's parent, and so on, ending with the root package
(the nameless package containing all top-level packages and modules,
whose module search path is None, implying sys.path).
Expand Down
2 changes: 1 addition & 1 deletion Lib/lib-tk/FileDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class FileDialog:
and pattern arguments, overriding the values passed in (it does
not keep track of the default argument!). If no key is specified,
the dialog keeps no memory of previous state. Note that memory is
kept even when the dialog is cancelled. (All this emulates the
kept even when the dialog is canceled. (All this emulates the
behavior of the Macintosh file selection dialogs.)
"""
Expand Down
2 changes: 1 addition & 1 deletion Lib/lib-tk/Tkdnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def dnd_accept(self, source, event):
return self

def dnd_enter(self, source, event):
self.canvas.focus_set() # Show higlight border
self.canvas.focus_set() # Show highlight border
x, y = source.where(self.canvas, event)
x1, y1, x2, y2 = source.canvas.bbox(source.id)
dx, dy = x2-x1, y2-y1
Expand Down
Loading

0 comments on commit 7e47402

Please sign in to comment.