mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Issue #5341: Fix a variety of spelling errors.
This commit is contained in:
		
							parent
							
								
									a12a86e956
								
							
						
					
					
						commit
						3e4caeb3bf
					
				
					 56 changed files with 93 additions and 93 deletions
				
			
		|  | @ -110,12 +110,12 @@ def makeCascadeMenu(): | ||||||
|     Cascade_button.menu.choices = Menu(Cascade_button.menu) |     Cascade_button.menu.choices = Menu(Cascade_button.menu) | ||||||
| 
 | 
 | ||||||
|     # ...and this is a menu that cascades from that. |     # ...and this is a menu that cascades from that. | ||||||
|     Cascade_button.menu.choices.wierdones = Menu(Cascade_button.menu.choices) |     Cascade_button.menu.choices.weirdones = Menu(Cascade_button.menu.choices) | ||||||
| 
 | 
 | ||||||
|     # then you define the menus from the deepest level on up. |     # then you define the menus from the deepest level on up. | ||||||
|     Cascade_button.menu.choices.wierdones.add_command(label='avacado') |     Cascade_button.menu.choices.weirdones.add_command(label='avacado') | ||||||
|     Cascade_button.menu.choices.wierdones.add_command(label='belgian endive') |     Cascade_button.menu.choices.weirdones.add_command(label='belgian endive') | ||||||
|     Cascade_button.menu.choices.wierdones.add_command(label='beefaroni') |     Cascade_button.menu.choices.weirdones.add_command(label='beefaroni') | ||||||
| 
 | 
 | ||||||
|     # definition of the menu one level up... |     # definition of the menu one level up... | ||||||
|     Cascade_button.menu.choices.add_command(label='Chocolate') |     Cascade_button.menu.choices.add_command(label='Chocolate') | ||||||
|  | @ -125,8 +125,8 @@ def makeCascadeMenu(): | ||||||
|     Cascade_button.menu.choices.add_command(label='Rocky Road') |     Cascade_button.menu.choices.add_command(label='Rocky Road') | ||||||
|     Cascade_button.menu.choices.add_command(label='BubbleGum') |     Cascade_button.menu.choices.add_command(label='BubbleGum') | ||||||
|     Cascade_button.menu.choices.add_cascade( |     Cascade_button.menu.choices.add_cascade( | ||||||
|         label='Wierd Flavors', |         label='Weird Flavors', | ||||||
|         menu=Cascade_button.menu.choices.wierdones) |         menu=Cascade_button.menu.choices.weirdones) | ||||||
| 
 | 
 | ||||||
|     # and finally, the definition for the top level |     # and finally, the definition for the top level | ||||||
|     Cascade_button.menu.add_cascade(label='more choices', |     Cascade_button.menu.add_cascade(label='more choices', | ||||||
|  |  | ||||||
|  | @ -48,7 +48,7 @@ def makeFileMenu(): | ||||||
|     File_button.menu = Menu(File_button) |     File_button.menu = Menu(File_button) | ||||||
| 
 | 
 | ||||||
|     # add an item. The first param is a menu entry type, |     # add an item. The first param is a menu entry type, | ||||||
|     # must be one of: "cascade", "checkbutton", "command", "radiobutton", "seperator" |     # must be one of: "cascade", "checkbutton", "command", "radiobutton", "separator" | ||||||
|     # see menu-demo-2.py for examples of use |     # see menu-demo-2.py for examples of use | ||||||
|     File_button.menu.add_command(label='New...', underline=0, |     File_button.menu.add_command(label='New...', underline=0, | ||||||
|                                  command=new_file) |                                  command=new_file) | ||||||
|  |  | ||||||
|  | @ -426,7 +426,7 @@ MVC stands for three components: | ||||||
|   user.  Typically this component is represented by the templates. |   user.  Typically this component is represented by the templates. | ||||||
| * The *controller*.  This is the layer between the user and the model.  The | * The *controller*.  This is the layer between the user and the model.  The | ||||||
|   controller reacts on user actions (like opening some specific URL) and tells |   controller reacts on user actions (like opening some specific URL) and tells | ||||||
|   the model to modify the data if neccessary. |   the model to modify the data if necessary. | ||||||
| 
 | 
 | ||||||
| While one might think that MVC is a complex design pattern, in fact it is not. | While one might think that MVC is a complex design pattern, in fact it is not. | ||||||
| It is used in Python because it has turned out to be useful for creating clean, | It is used in Python because it has turned out to be useful for creating clean, | ||||||
|  | @ -435,9 +435,9 @@ maintainable web sites. | ||||||
| .. note:: | .. note:: | ||||||
| 
 | 
 | ||||||
|    While not all Python frameworks explicitly support MVC, it is often trivial |    While not all Python frameworks explicitly support MVC, it is often trivial | ||||||
|    to create a web site which uses the MVC pattern by seperating the data logic |    to create a web site which uses the MVC pattern by separating the data logic | ||||||
|    (the model) from the user interaction logic (the controller) and the |    (the model) from the user interaction logic (the controller) and the | ||||||
|    templates (the view).  That's why it is important not to write unneccessary |    templates (the view).  That's why it is important not to write unnecessary | ||||||
|    Python code in the templates -- it is against MVC and creates more chaos. |    Python code in the templates -- it is against MVC and creates more chaos. | ||||||
| 
 | 
 | ||||||
| .. seealso:: | .. seealso:: | ||||||
|  | @ -607,7 +607,7 @@ Some notable frameworks | ||||||
| ----------------------- | ----------------------- | ||||||
| 
 | 
 | ||||||
| There is an incredible number of frameworks, so there is no way to describe them | There is an incredible number of frameworks, so there is no way to describe them | ||||||
| all.  It is not even neccessary, as most of these frameworks are nothing special | all.  It is not even necessary, as most of these frameworks are nothing special | ||||||
| and everything that can be done with these can also be done with one of the | and everything that can be done with these can also be done with one of the | ||||||
| popular ones. | popular ones. | ||||||
| 
 | 
 | ||||||
|  | @ -679,7 +679,7 @@ project called `Grok <http://grok.zope.org/>`_ which makes it possible for | ||||||
| Another framework that's already been mentioned is `Pylons`_.  Pylons is much | Another framework that's already been mentioned is `Pylons`_.  Pylons is much | ||||||
| like TurboGears with ab even stronger emphasis on flexibility, which is bought | like TurboGears with ab even stronger emphasis on flexibility, which is bought | ||||||
| at the cost of being more difficult to use.  Nearly every component can be | at the cost of being more difficult to use.  Nearly every component can be | ||||||
| exchanged, which makes it neccessary to use the documentation of every single | exchanged, which makes it necessary to use the documentation of every single | ||||||
| component, because there are so many Pylons combinations possible that can | component, because there are so many Pylons combinations possible that can | ||||||
| satisfy every requirement.  Pylons builds upon `Paste | satisfy every requirement.  Pylons builds upon `Paste | ||||||
| <http://pythonpaste.org/>`_, an extensive set of tools which are handy for WSGI. | <http://pythonpaste.org/>`_, an extensive set of tools which are handy for WSGI. | ||||||
|  |  | ||||||
|  | @ -14,7 +14,7 @@ builtin :func:`open` function is defined in this module. | ||||||
| 
 | 
 | ||||||
| At the top of the I/O hierarchy is the abstract base class :class:`IOBase`.  It | At the top of the I/O hierarchy is the abstract base class :class:`IOBase`.  It | ||||||
| defines the basic interface to a stream.  Note, however, that there is no | defines the basic interface to a stream.  Note, however, that there is no | ||||||
| seperation between reading and writing to streams; implementations are allowed | separation between reading and writing to streams; implementations are allowed | ||||||
| to throw an :exc:`IOError` if they do not support a given operation. | to throw an :exc:`IOError` if they do not support a given operation. | ||||||
| 
 | 
 | ||||||
| Extending :class:`IOBase` is :class:`RawIOBase` which deals simply with the | Extending :class:`IOBase` is :class:`RawIOBase` which deals simply with the | ||||||
|  | @ -612,7 +612,7 @@ Text I/O | ||||||
|    is enabled.  With this enabled, on input, the lines endings ``'\n'``, |    is enabled.  With this enabled, on input, the lines endings ``'\n'``, | ||||||
|    ``'\r'``, or ``'\r\n'`` are translated to ``'\n'`` before being returned to |    ``'\r'``, or ``'\r\n'`` are translated to ``'\n'`` before being returned to | ||||||
|    the caller.  Conversely, on output, ``'\n'`` is translated to the system |    the caller.  Conversely, on output, ``'\n'`` is translated to the system | ||||||
|    default line seperator, :data:`os.linesep`.  If *newline* is any other of its |    default line separator, :data:`os.linesep`.  If *newline* is any other of its | ||||||
|    legal values, that newline becomes the newline when the file is read and it |    legal values, that newline becomes the newline when the file is read and it | ||||||
|    is returned untranslated.  On output, ``'\n'`` is converted to the *newline*. |    is returned untranslated.  On output, ``'\n'`` is converted to the *newline*. | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -13,7 +13,7 @@ The :mod:`pty` module defines operations for handling the pseudo-terminal | ||||||
| concept: starting another process and being able to write to and read from its | concept: starting another process and being able to write to and read from its | ||||||
| controlling terminal programmatically. | controlling terminal programmatically. | ||||||
| 
 | 
 | ||||||
| Because pseudo-terminal handling is highly platform dependant, there is code to | Because pseudo-terminal handling is highly platform dependent, there is code to | ||||||
| do it only for SGI and Linux. (The Linux code is supposed to work on other | do it only for SGI and Linux. (The Linux code is supposed to work on other | ||||||
| platforms, but hasn't been tested yet.) | platforms, but hasn't been tested yet.) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -181,9 +181,9 @@ This module also defines two shortcut functions: | ||||||
|    To capture standard error in the result, use stderr=subprocess.STDOUT. |    To capture standard error in the result, use stderr=subprocess.STDOUT. | ||||||
| 
 | 
 | ||||||
|       >>> subprocess.check_output( |       >>> subprocess.check_output( | ||||||
|               ["/bin/sh", "-c", "ls non_existant_file ; exit 0"], |               ["/bin/sh", "-c", "ls non_existent_file ; exit 0"], | ||||||
|               stderr=subprocess.STDOUT) |               stderr=subprocess.STDOUT) | ||||||
|       'ls: non_existant_file: No such file or directory\n' |       'ls: non_existent_file: No such file or directory\n' | ||||||
| 
 | 
 | ||||||
|    .. versionadded:: 2.7 |    .. versionadded:: 2.7 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -470,7 +470,7 @@ arguments)``.  This is occasionally useful to clients as well.  (Note that this | ||||||
| only works if the base class is defined or imported directly in the global | only works if the base class is defined or imported directly in the global | ||||||
| scope.) | scope.) | ||||||
| 
 | 
 | ||||||
| Python has two builtin functions that work with inheritance: | Python has two built-in functions that work with inheritance: | ||||||
| 
 | 
 | ||||||
| * Use :func:`isinstance` to check an object's type: ``isinstance(obj, int)`` | * Use :func:`isinstance` to check an object's type: ``isinstance(obj, int)`` | ||||||
|   will be ``True`` only if ``obj.__class__`` is :class:`int` or some class |   will be ``True`` only if ``obj.__class__`` is :class:`int` or some class | ||||||
|  |  | ||||||
|  | @ -308,7 +308,7 @@ A more verbose version of this snippet shows the flow explicitly:: | ||||||
|             print row[i], |             print row[i], | ||||||
|         print |         print | ||||||
| 
 | 
 | ||||||
| In real world, you should prefer builtin functions to complex flow statements. | In real world, you should prefer built-in functions to complex flow statements. | ||||||
| The :func:`zip` function would do a great job for this use case:: | The :func:`zip` function would do a great job for this use case:: | ||||||
| 
 | 
 | ||||||
|     >>> zip(*mat) |     >>> zip(*mat) | ||||||
|  |  | ||||||
|  | @ -65,7 +65,7 @@ display :: | ||||||
|    >>> 0.1 |    >>> 0.1 | ||||||
|    0.1000000000000000055511151231257827021181583404541015625 |    0.1000000000000000055511151231257827021181583404541015625 | ||||||
| 
 | 
 | ||||||
| instead!  The Python prompt uses the builtin :func:`repr` function to obtain a | instead!  The Python prompt uses the built-in :func:`repr` function to obtain a | ||||||
| string version of everything it displays.  For floats, ``repr(float)`` rounds | string version of everything it displays.  For floats, ``repr(float)`` rounds | ||||||
| the true decimal value to 17 significant digits, giving :: | the true decimal value to 17 significant digits, giving :: | ||||||
| 
 | 
 | ||||||
|  | @ -81,7 +81,7 @@ thing in all languages that support your hardware's floating-point arithmetic | ||||||
| (although some languages may not *display* the difference by default, or in all | (although some languages may not *display* the difference by default, or in all | ||||||
| output modes). | output modes). | ||||||
| 
 | 
 | ||||||
| Python's builtin :func:`str` function produces only 12 significant digits, and | Python's built-in :func:`str` function produces only 12 significant digits, and | ||||||
| you may wish to use that instead.  It's unusual for ``eval(str(x))`` to | you may wish to use that instead.  It's unusual for ``eval(str(x))`` to | ||||||
| reproduce *x*, but the output may be more pleasant to look at:: | reproduce *x*, but the output may be more pleasant to look at:: | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -187,7 +187,7 @@ notation.:: | ||||||
| This is particularly useful in combination with the new built-in :func:`vars` | This is particularly useful in combination with the new built-in :func:`vars` | ||||||
| function, which returns a dictionary containing all local variables. | function, which returns a dictionary containing all local variables. | ||||||
| 
 | 
 | ||||||
| For a complete overview of string formating with :meth:`str.format`, see | For a complete overview of string formatting with :meth:`str.format`, see | ||||||
| :ref:`formatstrings`. | :ref:`formatstrings`. | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -21,12 +21,12 @@ operating system:: | ||||||
|    >>> os.chdir('/server/accesslogs') |    >>> os.chdir('/server/accesslogs') | ||||||
| 
 | 
 | ||||||
| Be sure to use the ``import os`` style instead of ``from os import *``.  This | Be sure to use the ``import os`` style instead of ``from os import *``.  This | ||||||
| will keep :func:`os.open` from shadowing the builtin :func:`open` function which | will keep :func:`os.open` from shadowing the built-in :func:`open` function which | ||||||
| operates much differently. | operates much differently. | ||||||
| 
 | 
 | ||||||
| .. index:: builtin: help | .. index:: builtin: help | ||||||
| 
 | 
 | ||||||
| The builtin :func:`dir` and :func:`help` functions are useful as interactive | The built-in :func:`dir` and :func:`help` functions are useful as interactive | ||||||
| aids for working with large modules like :mod:`os`:: | aids for working with large modules like :mod:`os`:: | ||||||
| 
 | 
 | ||||||
|    >>> import os |    >>> import os | ||||||
|  |  | ||||||
|  | @ -131,7 +131,7 @@ def test01_GetsAndPuts(self): | ||||||
| 
 | 
 | ||||||
|         self.assertEqual(d.get('0321'), '0321-0321-0321-0321-0321') |         self.assertEqual(d.get('0321'), '0321-0321-0321-0321-0321') | ||||||
| 
 | 
 | ||||||
|         # By default non-existant keys return None... |         # By default non-existent keys return None... | ||||||
|         self.assertEqual(d.get('abcd'), None) |         self.assertEqual(d.get('abcd'), None) | ||||||
| 
 | 
 | ||||||
|         # ...but they raise exceptions in other situations.  Call |         # ...but they raise exceptions in other situations.  Call | ||||||
|  |  | ||||||
|  | @ -133,7 +133,7 @@ def do_bthash_test(self, factory, what): | ||||||
|             except KeyError: |             except KeyError: | ||||||
|                 pass |                 pass | ||||||
|             else: |             else: | ||||||
|                 self.fail("set_location on non-existant key did not raise KeyError") |                 self.fail("set_location on non-existent key did not raise KeyError") | ||||||
| 
 | 
 | ||||||
|         f.sync() |         f.sync() | ||||||
|         f.close() |         f.close() | ||||||
|  |  | ||||||
|  | @ -150,7 +150,7 @@ def test01_basic(self): | ||||||
|         if verbose: |         if verbose: | ||||||
|             print rec |             print rec | ||||||
| 
 | 
 | ||||||
|         # test that non-existant key lookups work (and that |         # test that non-existent key lookups work (and that | ||||||
|         # DBC_set_range doesn't have a memleak under valgrind) |         # DBC_set_range doesn't have a memleak under valgrind) | ||||||
|         rec = c.set_range(999999) |         rec = c.set_range(999999) | ||||||
|         self.assertEqual(rec, None) |         self.assertEqual(rec, None) | ||||||
|  |  | ||||||
|  | @ -1329,7 +1329,7 @@ def _mdiff(fromlines, tolines, context=None, linejunk=None, | ||||||
|     (from line tuple, to line tuple, boolean flag) |     (from line tuple, to line tuple, boolean flag) | ||||||
| 
 | 
 | ||||||
|     from/to line tuple -- (line num, line text) |     from/to line tuple -- (line num, line text) | ||||||
|         line num -- integer or None (to indicate a context seperation) |         line num -- integer or None (to indicate a context separation) | ||||||
|         line text -- original line text with following markers inserted: |         line text -- original line text with following markers inserted: | ||||||
|             '\0+' -- marks start of added text |             '\0+' -- marks start of added text | ||||||
|             '\0-' -- marks start of deleted text |             '\0-' -- marks start of deleted text | ||||||
|  |  | ||||||
|  | @ -57,7 +57,7 @@ def test_run_setup_provides_file(self): | ||||||
| 
 | 
 | ||||||
|     def test_run_setup_uses_current_dir(self): |     def test_run_setup_uses_current_dir(self): | ||||||
|         # This tests that the setup script is run with the current directory |         # This tests that the setup script is run with the current directory | ||||||
|         # as it's own current directory; this was temporarily broken by a |         # as its own current directory; this was temporarily broken by a | ||||||
|         # previous patch when TESTFN did not use the current directory. |         # previous patch when TESTFN did not use the current directory. | ||||||
|         sys.stdout = StringIO.StringIO() |         sys.stdout = StringIO.StringIO() | ||||||
|         cwd = os.getcwd() |         cwd = os.getcwd() | ||||||
|  |  | ||||||
|  | @ -20,7 +20,7 @@ | ||||||
| SEMISPACE = '; ' | SEMISPACE = '; ' | ||||||
| 
 | 
 | ||||||
| # Regular expression that matches `special' characters in parameters, the | # Regular expression that matches `special' characters in parameters, the | ||||||
| # existance of which force quoting of the parameter value. | # existence of which force quoting of the parameter value. | ||||||
| tspecials = re.compile(r'[ \(\)<>@,;:\\"/\[\]\?=]') | tspecials = re.compile(r'[ \(\)<>@,;:\\"/\[\]\?=]') | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -67,7 +67,7 @@ def force_open_completions_event(self, event): | ||||||
| 
 | 
 | ||||||
|     def try_open_completions_event(self, event): |     def try_open_completions_event(self, event): | ||||||
|         """Happens when it would be nice to open a completion list, but not |         """Happens when it would be nice to open a completion list, but not | ||||||
|         really neccesary, for example after an dot, so function |         really necessary, for example after an dot, so function | ||||||
|         calls won't be made. |         calls won't be made. | ||||||
|         """ |         """ | ||||||
|         lastchar = self.text.get("insert-1c") |         lastchar = self.text.get("insert-1c") | ||||||
|  | @ -79,7 +79,7 @@ def try_open_completions_event(self, event): | ||||||
|                                          COMPLETE_FILES) |                                          COMPLETE_FILES) | ||||||
| 
 | 
 | ||||||
|     def autocomplete_event(self, event): |     def autocomplete_event(self, event): | ||||||
|         """Happens when the user wants to complete his word, and if neccesary, |         """Happens when the user wants to complete his word, and if necessary, | ||||||
|         open a completion list after that (if there is more than one |         open a completion list after that (if there is more than one | ||||||
|         completion) |         completion) | ||||||
|         """ |         """ | ||||||
|  |  | ||||||
|  | @ -51,7 +51,7 @@ def force_open_calltip_event(self, event): | ||||||
| 
 | 
 | ||||||
|     def try_open_calltip_event(self, event): |     def try_open_calltip_event(self, event): | ||||||
|         """Happens when it would be nice to open a CallTip, but not really |         """Happens when it would be nice to open a CallTip, but not really | ||||||
|         neccesary, for example after an opening bracket, so function calls |         necessary, for example after an opening bracket, so function calls | ||||||
|         won't be made. |         won't be made. | ||||||
|         """ |         """ | ||||||
|         self.open_calltip(False) |         self.open_calltip(False) | ||||||
|  |  | ||||||
|  | @ -300,7 +300,7 @@ What's New in IDLE 1.1a3? | ||||||
|   window raising, especially in the Windows menu and in the debugger. |   window raising, especially in the Windows menu and in the debugger. | ||||||
|   IDLEfork 763524. |   IDLEfork 763524. | ||||||
| 
 | 
 | ||||||
| - If user passes a non-existant filename on the commandline, just | - If user passes a non-existent filename on the commandline, just | ||||||
|   open a new file, don't raise a dialog.  IDLEfork 854928. |   open a new file, don't raise a dialog.  IDLEfork 854928. | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -4,7 +4,7 @@ | ||||||
| 
 | 
 | ||||||
| At the top of the I/O hierarchy is the abstract base class IOBase. It | At the top of the I/O hierarchy is the abstract base class IOBase. It | ||||||
| defines the basic interface to a stream. Note, however, that there is no | defines the basic interface to a stream. Note, however, that there is no | ||||||
| seperation between reading and writing to streams; implementations are | separation between reading and writing to streams; implementations are | ||||||
| allowed to throw an IOError if they do not support a given operation. | allowed to throw an IOError if they do not support a given operation. | ||||||
| 
 | 
 | ||||||
| Extending IOBase is RawIOBase which deals simply with the reading and | Extending IOBase is RawIOBase which deals simply with the reading and | ||||||
|  | @ -1374,7 +1374,7 @@ class TextIOWrapper(TextIOBase): | ||||||
|     enabled.  With this enabled, on input, the lines endings '\n', '\r', |     enabled.  With this enabled, on input, the lines endings '\n', '\r', | ||||||
|     or '\r\n' are translated to '\n' before being returned to the |     or '\r\n' are translated to '\n' before being returned to the | ||||||
|     caller. Conversely, on output, '\n' is translated to the system |     caller. Conversely, on output, '\n' is translated to the system | ||||||
|     default line seperator, os.linesep. If newline is any other of its |     default line separator, os.linesep. If newline is any other of its | ||||||
|     legal values, that newline becomes the newline when the file is read |     legal values, that newline becomes the newline when the file is read | ||||||
|     and it is returned untranslated. On output, '\n' is converted to the |     and it is returned untranslated. On output, '\n' is converted to the | ||||||
|     newline. |     newline. | ||||||
|  |  | ||||||
|  | @ -3316,7 +3316,7 @@ def get(self, x, y): | ||||||
|         """Return the color (red, green, blue) of the pixel at X,Y.""" |         """Return the color (red, green, blue) of the pixel at X,Y.""" | ||||||
|         return self.tk.call(self.name, 'get', x, y) |         return self.tk.call(self.name, 'get', x, y) | ||||||
|     def put(self, data, to=None): |     def put(self, data, to=None): | ||||||
|         """Put row formated colors to image starting from |         """Put row formatted colors to image starting from | ||||||
|         position TO, e.g. image.put("{red green} {blue yellow}", to=(4,6))""" |         position TO, e.g. image.put("{red green} {blue yellow}", to=(4,6))""" | ||||||
|         args = (self.name, 'put', data) |         args = (self.name, 'put', data) | ||||||
|         if to: |         if to: | ||||||
|  |  | ||||||
|  | @ -61,7 +61,7 @@ def test_layout(self): | ||||||
| 
 | 
 | ||||||
|         # correct layout, but "option" doesn't exist as option |         # correct layout, but "option" doesn't exist as option | ||||||
|         self.failUnlessRaises(Tkinter.TclError, style.layout, 'Treeview', |         self.failUnlessRaises(Tkinter.TclError, style.layout, 'Treeview', | ||||||
|             [('name', {'option': 'inexistant'})]) |             [('name', {'option': 'inexistent'})]) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|     def test_theme_use(self): |     def test_theme_use(self): | ||||||
|  |  | ||||||
|  | @ -861,9 +861,9 @@ def test_detach_reattach(self): | ||||||
| 
 | 
 | ||||||
|         # bad values |         # bad values | ||||||
|         self.failUnlessRaises(Tkinter.TclError, |         self.failUnlessRaises(Tkinter.TclError, | ||||||
|             self.tv.reattach, 'nonexistant', '', 'end') |             self.tv.reattach, 'nonexistent', '', 'end') | ||||||
|         self.failUnlessRaises(Tkinter.TclError, |         self.failUnlessRaises(Tkinter.TclError, | ||||||
|             self.tv.detach, 'nonexistant') |             self.tv.detach, 'nonexistent') | ||||||
|         self.failUnlessRaises(Tkinter.TclError, |         self.failUnlessRaises(Tkinter.TclError, | ||||||
|             self.tv.reattach, item2, 'otherparent', 'end') |             self.tv.reattach, item2, 'otherparent', 'end') | ||||||
|         self.failUnlessRaises(Tkinter.TclError, |         self.failUnlessRaises(Tkinter.TclError, | ||||||
|  | @ -897,7 +897,7 @@ def test_focus(self): | ||||||
|         self.tv.delete(item1) |         self.tv.delete(item1) | ||||||
|         self.failUnlessEqual(self.tv.focus(), '') |         self.failUnlessEqual(self.tv.focus(), '') | ||||||
| 
 | 
 | ||||||
|         # try focusing inexistant item |         # try focusing inexistent item | ||||||
|         self.failUnlessRaises(Tkinter.TclError, self.tv.focus, 'hi') |         self.failUnlessRaises(Tkinter.TclError, self.tv.focus, 'hi') | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -1064,11 +1064,11 @@ def test_set(self): | ||||||
|         self.failUnlessEqual(self.tv.item(item, values=None), (123, 'a')) |         self.failUnlessEqual(self.tv.item(item, values=None), (123, 'a')) | ||||||
|         self.failUnlessEqual(self.tv.set(item), {'B': 123}) |         self.failUnlessEqual(self.tv.set(item), {'B': 123}) | ||||||
| 
 | 
 | ||||||
|         # inexistant column |         # inexistent column | ||||||
|         self.failUnlessRaises(Tkinter.TclError, self.tv.set, item, 'A') |         self.failUnlessRaises(Tkinter.TclError, self.tv.set, item, 'A') | ||||||
|         self.failUnlessRaises(Tkinter.TclError, self.tv.set, item, 'A', 'b') |         self.failUnlessRaises(Tkinter.TclError, self.tv.set, item, 'A', 'b') | ||||||
| 
 | 
 | ||||||
|         # inexistant item |         # inexistent item | ||||||
|         self.failUnlessRaises(Tkinter.TclError, self.tv.set, 'notme') |         self.failUnlessRaises(Tkinter.TclError, self.tv.set, 'notme') | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -2794,7 +2794,7 @@ def _polytrafo(self, poly): | ||||||
| 
 | 
 | ||||||
|     def _drawturtle(self): |     def _drawturtle(self): | ||||||
|         """Manages the correct rendering of the turtle with respect to |         """Manages the correct rendering of the turtle with respect to | ||||||
|         its shape, resizemode, strech and tilt etc.""" |         its shape, resizemode, stretch and tilt etc.""" | ||||||
|         screen = self.screen |         screen = self.screen | ||||||
|         shape = screen._shapes[self.turtle.shapeIndex] |         shape = screen._shapes[self.turtle.shapeIndex] | ||||||
|         ttype = shape._type |         ttype = shape._type | ||||||
|  |  | ||||||
|  | @ -1574,7 +1574,7 @@ def print_usage(self, file=None): | ||||||
|         """print_usage(file : file = stdout) |         """print_usage(file : file = stdout) | ||||||
| 
 | 
 | ||||||
|         Print the usage message for the current program (self.usage) to |         Print the usage message for the current program (self.usage) to | ||||||
|         'file' (default stdout).  Any occurence of the string "%prog" in |         'file' (default stdout).  Any occurrence of the string "%prog" in | ||||||
|         self.usage is replaced with the name of the current program |         self.usage is replaced with the name of the current program | ||||||
|         (basename of sys.argv[0]).  Does nothing if self.usage is empty |         (basename of sys.argv[0]).  Does nothing if self.usage is empty | ||||||
|         or not defined. |         or not defined. | ||||||
|  | @ -1592,7 +1592,7 @@ def print_version(self, file=None): | ||||||
|         """print_version(file : file = stdout) |         """print_version(file : file = stdout) | ||||||
| 
 | 
 | ||||||
|         Print the version message for this program (self.version) to |         Print the version message for this program (self.version) to | ||||||
|         'file' (default stdout).  As with print_usage(), any occurence |         'file' (default stdout).  As with print_usage(), any occurrence | ||||||
|         of "%prog" in self.version is replaced by the current program's |         of "%prog" in self.version is replaced by the current program's | ||||||
|         name.  Does nothing if self.version is empty or undefined. |         name.  Does nothing if self.version is empty or undefined. | ||||||
|         """ |         """ | ||||||
|  |  | ||||||
|  | @ -669,7 +669,7 @@ def findDependencies(self): | ||||||
|                 if self.use_zipimport: |                 if self.use_zipimport: | ||||||
|                     if name != "zlib": |                     if name != "zlib": | ||||||
|                         # neatly pack all extension modules in a subdirectory, |                         # neatly pack all extension modules in a subdirectory, | ||||||
|                         # except zlib, since it's neccesary for bootstrapping. |                         # except zlib, since it's necessary for bootstrapping. | ||||||
|                         dstpath = pathjoin("ExtensionModules", dstpath) |                         dstpath = pathjoin("ExtensionModules", dstpath) | ||||||
|                     # Python modules are stored in a Zip archive, but put |                     # Python modules are stored in a Zip archive, but put | ||||||
|                     # extensions in Contents/Resources/. Add a tiny "loader" |                     # extensions in Contents/Resources/. Add a tiny "loader" | ||||||
|  |  | ||||||
|  | @ -420,7 +420,7 @@ def process_message(self, peer, mailfrom, rcpttos, data): | ||||||
|         s = StringIO(data) |         s = StringIO(data) | ||||||
|         msg = Message.Message(s) |         msg = Message.Message(s) | ||||||
|         # These headers are required for the proper execution of Mailman.  All |         # These headers are required for the proper execution of Mailman.  All | ||||||
|         # MTAs in existance seem to add these if the original message doesn't |         # MTAs in existence seem to add these if the original message doesn't | ||||||
|         # have them. |         # have them. | ||||||
|         if not msg.getheader('from'): |         if not msg.getheader('from'): | ||||||
|             msg['From'] = mailfrom |             msg['From'] = mailfrom | ||||||
|  |  | ||||||
|  | @ -494,9 +494,9 @@ def check_output(*popenargs, **kwargs): | ||||||
|     To capture standard error in the result, use stderr=subprocess.STDOUT. |     To capture standard error in the result, use stderr=subprocess.STDOUT. | ||||||
| 
 | 
 | ||||||
|     >>> check_output(["/bin/sh", "-c", |     >>> check_output(["/bin/sh", "-c", | ||||||
|                       "ls -l non_existant_file ; exit 0"], |                       "ls -l non_existent_file ; exit 0"], | ||||||
|                      stderr=subprocess.STDOUT) |                      stderr=subprocess.STDOUT) | ||||||
|     'ls: non_existant_file: No such file or directory\n' |     'ls: non_existent_file: No such file or directory\n' | ||||||
|     """ |     """ | ||||||
|     if 'stdout' in kwargs: |     if 'stdout' in kwargs: | ||||||
|         raise ValueError('stdout argument not allowed, it will be overridden.') |         raise ValueError('stdout argument not allowed, it will be overridden.') | ||||||
|  |  | ||||||
|  | @ -1772,7 +1772,7 @@ def close(self): | ||||||
|     def getmember(self, name): |     def getmember(self, name): | ||||||
|         """Return a TarInfo object for member `name'. If `name' can not be |         """Return a TarInfo object for member `name'. If `name' can not be | ||||||
|            found in the archive, KeyError is raised. If a member occurs more |            found in the archive, KeyError is raised. If a member occurs more | ||||||
|            than once in the archive, its last occurence is assumed to be the |            than once in the archive, its last occurrence is assumed to be the | ||||||
|            most up-to-date version. |            most up-to-date version. | ||||||
|         """ |         """ | ||||||
|         tarinfo = self._getmember(name) |         tarinfo = self._getmember(name) | ||||||
|  |  | ||||||
|  | @ -170,7 +170,7 @@ | ||||||
| 
 | 
 | ||||||
| class OutputTestCase(unittest.TestCase): | class OutputTestCase(unittest.TestCase): | ||||||
|     def normalize_calendar(self, s): |     def normalize_calendar(self, s): | ||||||
|         # Filters out locale dependant strings |         # Filters out locale dependent strings | ||||||
|         def neitherspacenordigit(c): |         def neitherspacenordigit(c): | ||||||
|             return not c.isspace() and not c.isdigit() |             return not c.isspace() and not c.isdigit() | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -87,11 +87,11 @@ def test_basic(self): | ||||||
|         # Make sure the right things happen for remove_option(); |         # Make sure the right things happen for remove_option(); | ||||||
|         # added to include check for SourceForge bug #123324: |         # added to include check for SourceForge bug #123324: | ||||||
|         self.failUnless(cf.remove_option('Foo Bar', 'foo'), |         self.failUnless(cf.remove_option('Foo Bar', 'foo'), | ||||||
|                         "remove_option() failed to report existance of option") |                         "remove_option() failed to report existence of option") | ||||||
|         self.failIf(cf.has_option('Foo Bar', 'foo'), |         self.failIf(cf.has_option('Foo Bar', 'foo'), | ||||||
|                     "remove_option() failed to remove option") |                     "remove_option() failed to remove option") | ||||||
|         self.failIf(cf.remove_option('Foo Bar', 'foo'), |         self.failIf(cf.remove_option('Foo Bar', 'foo'), | ||||||
|                     "remove_option() failed to report non-existance of option" |                     "remove_option() failed to report non-existence of option" | ||||||
|                     " that was removed") |                     " that was removed") | ||||||
| 
 | 
 | ||||||
|         self.assertRaises(ConfigParser.NoSectionError, |         self.assertRaises(ConfigParser.NoSectionError, | ||||||
|  | @ -264,7 +264,7 @@ def test_read_returns_file_list(self): | ||||||
|         file1 = test_support.findfile("cfgparser.1") |         file1 = test_support.findfile("cfgparser.1") | ||||||
|         # check when we pass a mix of readable and non-readable files: |         # check when we pass a mix of readable and non-readable files: | ||||||
|         cf = self.newconfig() |         cf = self.newconfig() | ||||||
|         parsed_files = cf.read([file1, "nonexistant-file"]) |         parsed_files = cf.read([file1, "nonexistent-file"]) | ||||||
|         self.assertEqual(parsed_files, [file1]) |         self.assertEqual(parsed_files, [file1]) | ||||||
|         self.assertEqual(cf.get("Foo Bar", "foo"), "newbar") |         self.assertEqual(cf.get("Foo Bar", "foo"), "newbar") | ||||||
|         # check when we pass only a filename: |         # check when we pass only a filename: | ||||||
|  | @ -274,7 +274,7 @@ def test_read_returns_file_list(self): | ||||||
|         self.assertEqual(cf.get("Foo Bar", "foo"), "newbar") |         self.assertEqual(cf.get("Foo Bar", "foo"), "newbar") | ||||||
|         # check when we pass only missing files: |         # check when we pass only missing files: | ||||||
|         cf = self.newconfig() |         cf = self.newconfig() | ||||||
|         parsed_files = cf.read(["nonexistant-file"]) |         parsed_files = cf.read(["nonexistent-file"]) | ||||||
|         self.assertEqual(parsed_files, []) |         self.assertEqual(parsed_files, []) | ||||||
|         # check when we pass no files: |         # check when we pass no files: | ||||||
|         cf = self.newconfig() |         cf = self.newconfig() | ||||||
|  |  | ||||||
|  | @ -109,7 +109,7 @@ def test_uninamereplace(self): | ||||||
|         # useful that the error handler is not called for every single |         # useful that the error handler is not called for every single | ||||||
|         # unencodable character, but for a complete sequence of |         # unencodable character, but for a complete sequence of | ||||||
|         # unencodable characters, otherwise we would output many |         # unencodable characters, otherwise we would output many | ||||||
|         # unneccessary escape sequences. |         # unnecessary escape sequences. | ||||||
| 
 | 
 | ||||||
|         def uninamereplace(exc): |         def uninamereplace(exc): | ||||||
|             if not isinstance(exc, UnicodeEncodeError): |             if not isinstance(exc, UnicodeEncodeError): | ||||||
|  |  | ||||||
|  | @ -1714,7 +1714,7 @@ def test_session_cookies(self): | ||||||
|             counter[key] = counter[key] + 1 |             counter[key] = counter[key] + 1 | ||||||
| 
 | 
 | ||||||
|         self.assert_(not ( |         self.assert_(not ( | ||||||
|             # a permanent cookie got lost accidently |             # a permanent cookie got lost accidentally | ||||||
|             counter["perm_after"] != counter["perm_before"] or |             counter["perm_after"] != counter["perm_before"] or | ||||||
|             # a session cookie hasn't been cleared |             # a session cookie hasn't been cleared | ||||||
|             counter["session_after"] != 0 or |             counter["session_after"] != 0 or | ||||||
|  |  | ||||||
|  | @ -54,7 +54,7 @@ def merge(self, other): | ||||||
|     {1: 3.25} |     {1: 3.25} | ||||||
|     >>> print a[1]                      # show the new item |     >>> print a[1]                      # show the new item | ||||||
|     3.25 |     3.25 | ||||||
|     >>> print a[0]                      # a non-existant item |     >>> print a[0]                      # a non-existent item | ||||||
|     0.0 |     0.0 | ||||||
|     >>> a.merge({1:100, 2:200})         # use a dict method |     >>> a.merge({1:100, 2:200})         # use a dict method | ||||||
|     >>> print sortdict(a)               # show the result |     >>> print sortdict(a)               # show the result | ||||||
|  |  | ||||||
|  | @ -196,7 +196,7 @@ def test_setting_attrs_duplicates(self): | ||||||
| 
 | 
 | ||||||
|     def test_unset_attr(self): |     def test_unset_attr(self): | ||||||
|         for func in [self.b, self.f.a, self.fi.a]: |         for func in [self.b, self.f.a, self.fi.a]: | ||||||
|             try:  func.non_existant_attr |             try:  func.non_existent_attr | ||||||
|             except AttributeError: pass |             except AttributeError: pass | ||||||
|             else: self.fail("using unknown attributes should raise " |             else: self.fail("using unknown attributes should raise " | ||||||
|                             "AttributeError") |                             "AttributeError") | ||||||
|  |  | ||||||
|  | @ -104,7 +104,7 @@ def setUp(self): | ||||||
|     def test_ftp(self): |     def test_ftp(self): | ||||||
|         urls = [ |         urls = [ | ||||||
|             'ftp://ftp.kernel.org/pub/linux/kernel/README', |             'ftp://ftp.kernel.org/pub/linux/kernel/README', | ||||||
|             'ftp://ftp.kernel.org/pub/linux/kernel/non-existant-file', |             'ftp://ftp.kernel.org/pub/linux/kernel/non-existent-file', | ||||||
|             #'ftp://ftp.kernel.org/pub/leenox/kernel/test', |             #'ftp://ftp.kernel.org/pub/leenox/kernel/test', | ||||||
|             'ftp://gatekeeper.research.compaq.com/pub/DEC/SRC' |             'ftp://gatekeeper.research.compaq.com/pub/DEC/SRC' | ||||||
|                 '/research-reports/00README-Legal-Rules-Regs', |                 '/research-reports/00README-Legal-Rules-Regs', | ||||||
|  |  | ||||||
|  | @ -8,7 +8,7 @@ | ||||||
| from types import ListType, TupleType | from types import ListType, TupleType | ||||||
| 
 | 
 | ||||||
| # Regular expression that matches `special' characters in parameters, the | # Regular expression that matches `special' characters in parameters, the | ||||||
| # existance of which force quoting of the parameter value. | # existence of which force quoting of the parameter value. | ||||||
| import re | import re | ||||||
| tspecials = re.compile(r'[ \(\)<>@,;:\\"/\[\]\?=]') | tspecials = re.compile(r'[ \(\)<>@,;:\\"/\[\]\?=]') | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -22,7 +22,7 @@ Date: Wed, 6 Aug 1997 11:41:00 +0200 (EET) | ||||||
| (2) Stefan Esser (se@MI.Uni-Koeln.DE), in work done to compile Python | (2) Stefan Esser (se@MI.Uni-Koeln.DE), in work done to compile Python | ||||||
|     1.0.0 on AIX 3.2.4, reports that AIX compilers don't like the LANG |     1.0.0 on AIX 3.2.4, reports that AIX compilers don't like the LANG | ||||||
|     environment varaiable set to European locales.  This makes the compiler |     environment varaiable set to European locales.  This makes the compiler | ||||||
|     generate floating point constants using "," as the decimal seperator, |     generate floating point constants using "," as the decimal separator, | ||||||
|     which the assembler doesn't understand (or perhaps it is the other way |     which the assembler doesn't understand (or perhaps it is the other way | ||||||
|     around, with the assembler expecting, but not getting "," in float |     around, with the assembler expecting, but not getting "," in float | ||||||
|     numbers).  "LANG=C; export LANG" solves the problem, as does |     numbers).  "LANG=C; export LANG" solves the problem, as does | ||||||
|  |  | ||||||
|  | @ -9862,7 +9862,7 @@ Tue Apr  6 19:38:18 1999  Guido van Rossum  <guido@eric.cnri.reston.va.us> | ||||||
| 	Also (quite separately, but strangely related to the philosophical | 	Also (quite separately, but strangely related to the philosophical | ||||||
| 	issue above) fix abspath() so that if win32api exists, it doesn't fail | 	issue above) fix abspath() so that if win32api exists, it doesn't fail | ||||||
| 	when the path doesn't actually exist -- if GetFullPathName() fails, | 	when the path doesn't actually exist -- if GetFullPathName() fails, | ||||||
| 	fall back on the old strategy (join with getcwd() if neccessary, and | 	fall back on the old strategy (join with getcwd() if necessary, and | ||||||
| 	then use normpath()). | 	then use normpath()). | ||||||
| 
 | 
 | ||||||
| 	* configure.in, configure, config.h.in, acconfig.h: | 	* configure.in, configure, config.h.in, acconfig.h: | ||||||
|  |  | ||||||
|  | @ -911,7 +911,7 @@ Library | ||||||
| - Issue #3575: Incremental decoder's decode function now takes bytearray | - Issue #3575: Incremental decoder's decode function now takes bytearray | ||||||
|   by using 's*' instead of 't#'. |   by using 's*' instead of 't#'. | ||||||
| 
 | 
 | ||||||
| - Issue #2222: Fixed reference leak when occured os.rename() | - Issue #2222: Fixed reference leak when occurred os.rename() | ||||||
|   fails unicode conversion on 2nd parameter. (windows only) |   fails unicode conversion on 2nd parameter. (windows only) | ||||||
| 
 | 
 | ||||||
| - Issue 2464. urllib2 now supports a malformation in the URL received | - Issue 2464. urllib2 now supports a malformation in the URL received | ||||||
|  |  | ||||||
|  | @ -481,7 +481,7 @@ s.istitle()       return True if string s is a titlecased string, False    (7) | ||||||
| s.isupper()       return True if all characters in s are uppercase, False  (6) | s.isupper()       return True if all characters in s are uppercase, False  (6) | ||||||
|                   otherwise. |                   otherwise. | ||||||
| s.join(seq)       return a concatenation of the strings in the sequence | s.join(seq)       return a concatenation of the strings in the sequence | ||||||
|                   seq, seperated by 's's. |                   seq, separated by 's's. | ||||||
| s.ljust(width)    return s left justified in a string of length width.    (1), | s.ljust(width)    return s left justified in a string of length width.    (1), | ||||||
|                                                                            (8) |                                                                            (8) | ||||||
| s.lower()         return a copy of s converted to lowercase. | s.lower()         return a copy of s converted to lowercase. | ||||||
|  | @ -1556,10 +1556,10 @@ secs)         monday), Julian day(1-366), daylight flag(-1,0 or 1)) | ||||||
| asctime( | asctime( | ||||||
| timeTuple), | timeTuple), | ||||||
| strftime( | strftime( | ||||||
| format,       return a formated string representing time. | format,       return a formatted string representing time. | ||||||
| timeTuple) | timeTuple) | ||||||
| mktime(tuple) inverse of localtime(). Return a float. | mktime(tuple) inverse of localtime(). Return a float. | ||||||
| strptime(     parse a formated string representing time, return tuple as in | strptime(     parse a formatted string representing time, return tuple as in | ||||||
| string[,      gmtime(). | string[,      gmtime(). | ||||||
| format]) | format]) | ||||||
| sleep(secs)   Suspend execution for <secs> seconds. <secs> can be a float. | sleep(secs)   Suspend execution for <secs> seconds. <secs> can be a float. | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								Modules/_ctypes/libffi/aclocal.m4
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								Modules/_ctypes/libffi/aclocal.m4
									
										
									
									
										vendored
									
									
								
							|  | @ -1155,7 +1155,7 @@ if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ | ||||||
|    test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ |    test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ | ||||||
|    test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |    test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | ||||||
| 
 | 
 | ||||||
|   # We can hardcode non-existant directories. |   # We can hardcode non-existent directories. | ||||||
|   if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |   if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && | ||||||
|      # If the only mechanism to avoid hardcoding is shlibpath_var, we |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||||||
|      # have to relink, otherwise we might link with an installed library |      # have to relink, otherwise we might link with an installed library | ||||||
|  |  | ||||||
							
								
								
									
										8
									
								
								Modules/_ctypes/libffi/configure
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								Modules/_ctypes/libffi/configure
									
										
									
									
										vendored
									
									
								
							|  | @ -9546,7 +9546,7 @@ if test -n "$hardcode_libdir_flag_spec" || \ | ||||||
|    test -n "$runpath_var" || \ |    test -n "$runpath_var" || \ | ||||||
|    test "X$hardcode_automatic" = "Xyes" ; then |    test "X$hardcode_automatic" = "Xyes" ; then | ||||||
| 
 | 
 | ||||||
|   # We can hardcode non-existant directories. |   # We can hardcode non-existent directories. | ||||||
|   if test "$hardcode_direct" != no && |   if test "$hardcode_direct" != no && | ||||||
|      # If the only mechanism to avoid hardcoding is shlibpath_var, we |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||||||
|      # have to relink, otherwise we might link with an installed library |      # have to relink, otherwise we might link with an installed library | ||||||
|  | @ -13514,7 +13514,7 @@ if test -n "$hardcode_libdir_flag_spec_CXX" || \ | ||||||
|    test -n "$runpath_var_CXX" || \ |    test -n "$runpath_var_CXX" || \ | ||||||
|    test "X$hardcode_automatic_CXX" = "Xyes" ; then |    test "X$hardcode_automatic_CXX" = "Xyes" ; then | ||||||
| 
 | 
 | ||||||
|   # We can hardcode non-existant directories. |   # We can hardcode non-existent directories. | ||||||
|   if test "$hardcode_direct_CXX" != no && |   if test "$hardcode_direct_CXX" != no && | ||||||
|      # If the only mechanism to avoid hardcoding is shlibpath_var, we |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||||||
|      # have to relink, otherwise we might link with an installed library |      # have to relink, otherwise we might link with an installed library | ||||||
|  | @ -16117,7 +16117,7 @@ if test -n "$hardcode_libdir_flag_spec_F77" || \ | ||||||
|    test -n "$runpath_var_F77" || \ |    test -n "$runpath_var_F77" || \ | ||||||
|    test "X$hardcode_automatic_F77" = "Xyes" ; then |    test "X$hardcode_automatic_F77" = "Xyes" ; then | ||||||
| 
 | 
 | ||||||
|   # We can hardcode non-existant directories. |   # We can hardcode non-existent directories. | ||||||
|   if test "$hardcode_direct_F77" != no && |   if test "$hardcode_direct_F77" != no && | ||||||
|      # If the only mechanism to avoid hardcoding is shlibpath_var, we |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||||||
|      # have to relink, otherwise we might link with an installed library |      # have to relink, otherwise we might link with an installed library | ||||||
|  | @ -18720,7 +18720,7 @@ if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | ||||||
|    test -n "$runpath_var_GCJ" || \ |    test -n "$runpath_var_GCJ" || \ | ||||||
|    test "X$hardcode_automatic_GCJ" = "Xyes" ; then |    test "X$hardcode_automatic_GCJ" = "Xyes" ; then | ||||||
| 
 | 
 | ||||||
|   # We can hardcode non-existant directories. |   # We can hardcode non-existent directories. | ||||||
|   if test "$hardcode_direct_GCJ" != no && |   if test "$hardcode_direct_GCJ" != no && | ||||||
|      # If the only mechanism to avoid hardcoding is shlibpath_var, we |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||||||
|      # have to relink, otherwise we might link with an installed library |      # have to relink, otherwise we might link with an installed library | ||||||
|  |  | ||||||
|  | @ -52,7 +52,7 @@ extern void ffi_call_unix64 (void *args, unsigned long bytes, unsigned flags, | ||||||
| /* Register class used for passing given 64bit part of the argument.
 | /* Register class used for passing given 64bit part of the argument.
 | ||||||
|    These represent classes as documented by the PS ABI, with the exception |    These represent classes as documented by the PS ABI, with the exception | ||||||
|    of SSESF, SSEDF classes, that are basically SSE class, just gcc will |    of SSESF, SSEDF classes, that are basically SSE class, just gcc will | ||||||
|    use SF or DFmode move instead of DImode to avoid reformating penalties. |    use SF or DFmode move instead of DImode to avoid reformatting penalties. | ||||||
| 
 | 
 | ||||||
|    Similary we play games with INTEGERSI_CLASS to use cheaper SImode moves |    Similary we play games with INTEGERSI_CLASS to use cheaper SImode moves | ||||||
|    whenever possible (upper half does contain padding).  */ |    whenever possible (upper half does contain padding).  */ | ||||||
|  |  | ||||||
|  | @ -55,7 +55,7 @@ ffi_call_unix64( | ||||||
| /*	Register class used for passing given 64bit part of the argument.
 | /*	Register class used for passing given 64bit part of the argument.
 | ||||||
| 	These represent classes as documented by the PS ABI, with the exception | 	These represent classes as documented by the PS ABI, with the exception | ||||||
| 	of SSESF, SSEDF classes, that are basically SSE class, just gcc will | 	of SSESF, SSEDF classes, that are basically SSE class, just gcc will | ||||||
| 	use SF or DFmode move instead of DImode to avoid reformating penalties. | 	use SF or DFmode move instead of DImode to avoid reformatting penalties. | ||||||
| 
 | 
 | ||||||
| 	Similary we play games with INTEGERSI_CLASS to use cheaper SImode moves | 	Similary we play games with INTEGERSI_CLASS to use cheaper SImode moves | ||||||
| 	whenever possible (upper half does contain padding).  */ | 	whenever possible (upper half does contain padding).  */ | ||||||
|  |  | ||||||
|  | @ -845,7 +845,7 @@ static int _progress_handler(void* user_arg) | ||||||
|             PyErr_Clear(); |             PyErr_Clear(); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         /* abort query if error occured */ |         /* abort query if error occurred */ | ||||||
|         rc = 1;  |         rc = 1;  | ||||||
|     } else { |     } else { | ||||||
|         rc = (int)PyObject_IsTrue(ret); |         rc = (int)PyObject_IsTrue(ret); | ||||||
|  |  | ||||||
|  | @ -935,7 +935,7 @@ array_count(arrayobject *self, PyObject *v) | ||||||
| PyDoc_STRVAR(count_doc, | PyDoc_STRVAR(count_doc, | ||||||
| "count(x)\n\
 | "count(x)\n\
 | ||||||
| \n\ | \n\ | ||||||
| Return number of occurences of x in the array."); | Return number of occurrences of x in the array."); | ||||||
| 
 | 
 | ||||||
| static PyObject * | static PyObject * | ||||||
| array_index(arrayobject *self, PyObject *v) | array_index(arrayobject *self, PyObject *v) | ||||||
|  | @ -959,7 +959,7 @@ array_index(arrayobject *self, PyObject *v) | ||||||
| PyDoc_STRVAR(index_doc, | PyDoc_STRVAR(index_doc, | ||||||
| "index(x)\n\
 | "index(x)\n\
 | ||||||
| \n\ | \n\ | ||||||
| Return index of first occurence of x in the array."); | Return index of first occurrence of x in the array."); | ||||||
| 
 | 
 | ||||||
| static int | static int | ||||||
| array_contains(arrayobject *self, PyObject *v) | array_contains(arrayobject *self, PyObject *v) | ||||||
|  | @ -1001,7 +1001,7 @@ array_remove(arrayobject *self, PyObject *v) | ||||||
| PyDoc_STRVAR(remove_doc, | PyDoc_STRVAR(remove_doc, | ||||||
| "remove(x)\n\
 | "remove(x)\n\
 | ||||||
| \n\ | \n\ | ||||||
| Remove the first occurence of x in the array."); | Remove the first occurrence of x in the array."); | ||||||
| 
 | 
 | ||||||
| static PyObject * | static PyObject * | ||||||
| array_pop(arrayobject *self, PyObject *args) | array_pop(arrayobject *self, PyObject *args) | ||||||
|  | @ -2055,16 +2055,16 @@ Methods:\n\ | ||||||
| append() -- append a new item to the end of the array\n\ | append() -- append a new item to the end of the array\n\ | ||||||
| buffer_info() -- return information giving the current memory info\n\ | buffer_info() -- return information giving the current memory info\n\ | ||||||
| byteswap() -- byteswap all the items of the array\n\ | byteswap() -- byteswap all the items of the array\n\ | ||||||
| count() -- return number of occurences of an object\n\ | count() -- return number of occurrences of an object\n\ | ||||||
| extend() -- extend array by appending multiple elements from an iterable\n\ | extend() -- extend array by appending multiple elements from an iterable\n\ | ||||||
| fromfile() -- read items from a file object\n\ | fromfile() -- read items from a file object\n\ | ||||||
| fromlist() -- append items from the list\n\ | fromlist() -- append items from the list\n\ | ||||||
| fromstring() -- append items from the string\n\ | fromstring() -- append items from the string\n\ | ||||||
| index() -- return index of first occurence of an object\n\ | index() -- return index of first occurrence of an object\n\ | ||||||
| insert() -- insert a new item into the array at a provided position\n\ | insert() -- insert a new item into the array at a provided position\n\ | ||||||
| pop() -- remove and return item (default last)\n\ | pop() -- remove and return item (default last)\n\ | ||||||
| read() -- DEPRECATED, use fromfile()\n\ | read() -- DEPRECATED, use fromfile()\n\ | ||||||
| remove() -- remove first occurence of an object\n\ | remove() -- remove first occurrence of an object\n\ | ||||||
| reverse() -- reverse the order of the items in the array\n\ | reverse() -- reverse the order of the items in the array\n\ | ||||||
| tofile() -- write all items to a file object\n\ | tofile() -- write all items to a file object\n\ | ||||||
| tolist() -- return the array converted to an ordinary list\n\ | tolist() -- return the array converted to an ordinary list\n\ | ||||||
|  |  | ||||||
|  | @ -2484,7 +2484,7 @@ posix_listdir(PyObject *self, PyObject *args) | ||||||
| static PyObject * | static PyObject * | ||||||
| posix__getfullpathname(PyObject *self, PyObject *args) | posix__getfullpathname(PyObject *self, PyObject *args) | ||||||
| { | { | ||||||
| 	/* assume encoded strings wont more than double no of chars */ | 	/* assume encoded strings won't more than double no of chars */ | ||||||
| 	char inbuf[MAX_PATH*2]; | 	char inbuf[MAX_PATH*2]; | ||||||
| 	char *inbufp = inbuf; | 	char *inbufp = inbuf; | ||||||
| 	Py_ssize_t insize = sizeof(inbuf); | 	Py_ssize_t insize = sizeof(inbuf); | ||||||
|  | @ -5113,7 +5113,7 @@ _PyPopenCreateProcess(char *cmdstring, | ||||||
| 			   "Your program accessed mem currently in use at xxx" | 			   "Your program accessed mem currently in use at xxx" | ||||||
| 			   and a hopeful warning about the stability of your | 			   and a hopeful warning about the stability of your | ||||||
| 			   system. | 			   system. | ||||||
| 			   Cost is Ctrl+C wont kill children, but anyone | 			   Cost is Ctrl+C won't kill children, but anyone | ||||||
| 			   who cares can have a go! | 			   who cares can have a go! | ||||||
| 			*/ | 			*/ | ||||||
| 			dwProcessFlags |= CREATE_NEW_CONSOLE; | 			dwProcessFlags |= CREATE_NEW_CONSOLE; | ||||||
|  |  | ||||||
|  | @ -2258,7 +2258,7 @@ PySequence_Fast(PyObject *v, const char *m) | ||||||
| 
 | 
 | ||||||
| /* Iterate over seq.  Result depends on the operation:
 | /* Iterate over seq.  Result depends on the operation:
 | ||||||
|    PY_ITERSEARCH_COUNT:  -1 if error, else # of times obj appears in seq. |    PY_ITERSEARCH_COUNT:  -1 if error, else # of times obj appears in seq. | ||||||
|    PY_ITERSEARCH_INDEX:  0-based index of first occurence of obj in seq; |    PY_ITERSEARCH_INDEX:  0-based index of first occurrence of obj in seq; | ||||||
|    	set ValueError and return -1 if none found; also return -1 on error. |    	set ValueError and return -1 if none found; also return -1 on error. | ||||||
|    Py_ITERSEARCH_CONTAINS:  return 1 if obj in seq, else 0; -1 on error. |    Py_ITERSEARCH_CONTAINS:  return 1 if obj in seq, else 0; -1 on error. | ||||||
| */ | */ | ||||||
|  |  | ||||||
|  | @ -309,7 +309,7 @@ Stability constrains permissible merging patterns.  For example, if we have | ||||||
|     A:10000  B:20000  C:10000 |     A:10000  B:20000  C:10000 | ||||||
| 
 | 
 | ||||||
| we dare not merge A with C first, because if A, B and C happen to contain | we dare not merge A with C first, because if A, B and C happen to contain | ||||||
| a common element, it would get out of order wrt its occurence(s) in B.  The | a common element, it would get out of order wrt its occurrence(s) in B.  The | ||||||
| merging must be done as (A+B)+C or A+(B+C) instead. | merging must be done as (A+B)+C or A+(B+C) instead. | ||||||
| 
 | 
 | ||||||
| So merging is always done on two consecutive runs at a time, and in-place, | So merging is always done on two consecutive runs at a time, and in-place, | ||||||
|  |  | ||||||
|  | @ -1964,7 +1964,7 @@ static void | ||||||
| none_dealloc(PyObject* ignore) | none_dealloc(PyObject* ignore) | ||||||
| { | { | ||||||
| 	/* This should never get called, but we also don't want to SEGV if
 | 	/* This should never get called, but we also don't want to SEGV if
 | ||||||
| 	 * we accidently decref None out of existance. | 	 * we accidentally decref None out of existence. | ||||||
| 	 */ | 	 */ | ||||||
| 	Py_FatalError("deallocating None"); | 	Py_FatalError("deallocating None"); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -1704,7 +1704,7 @@ PyObject *PyUnicode_EncodeUTF7(const Py_UNICODE *s, | ||||||
|                 charsleft = (charsleft << 16) | ch; |                 charsleft = (charsleft << 16) | ch; | ||||||
|                 /* out, charsleft, bitsleft = */ ENCODE(out, charsleft, bitsleft); |                 /* out, charsleft, bitsleft = */ ENCODE(out, charsleft, bitsleft); | ||||||
| 
 | 
 | ||||||
|                 /* If the next character is special then we dont' need to terminate
 |                 /* If the next character is special then we don't need to terminate
 | ||||||
|                    the shift sequence. If the next character is not a BASE64 character |                    the shift sequence. If the next character is not a BASE64 character | ||||||
|                    or '-' then the shift sequence will be terminated implicitly and we |                    or '-' then the shift sequence will be terminated implicitly and we | ||||||
|                    don't have to insert a '-'. */ |                    don't have to insert a '-'. */ | ||||||
|  |  | ||||||
|  | @ -25,7 +25,7 @@ static char errNotAHandle[] = "Object is not a handle"; | ||||||
| 
 | 
 | ||||||
| /* The win32api module reports the function name that failed,
 | /* The win32api module reports the function name that failed,
 | ||||||
|    but this concept is not in the Python core. |    but this concept is not in the Python core. | ||||||
|    Hopefully it will one day, and in the meantime I dont |    Hopefully it will one day, and in the meantime I don't | ||||||
|    want to lose this info... |    want to lose this info... | ||||||
| */ | */ | ||||||
| #define PyErr_SetFromWindowsErrWithFunction(rc, fnname) \ | #define PyErr_SetFromWindowsErrWithFunction(rc, fnname) \ | ||||||
|  | @ -690,9 +690,9 @@ PyWinObject_CloseHKEY(PyObject *obHandle) | ||||||
| ** Note that fixupMultiSZ and countString have both had changes | ** Note that fixupMultiSZ and countString have both had changes | ||||||
| ** made to support "incorrect strings".  The registry specification | ** made to support "incorrect strings".  The registry specification | ||||||
| ** calls for strings to be terminated with 2 null bytes.  It seems | ** calls for strings to be terminated with 2 null bytes.  It seems | ||||||
| ** some commercial packages install strings which dont conform, | ** some commercial packages install strings which don't conform, | ||||||
| ** causing this code to fail - however, "regedit" etc still work | ** causing this code to fail - however, "regedit" etc still work | ||||||
| ** with these strings (ie only we dont!). | ** with these strings (ie only we don't!). | ||||||
| */ | */ | ||||||
| static void | static void | ||||||
| fixupMultiSZ(char **str, char *data, int len) | fixupMultiSZ(char **str, char *data, int len) | ||||||
|  |  | ||||||
|  | @ -219,7 +219,7 @@ MODULES		=                   \ | ||||||
| 
 | 
 | ||||||
|   # zlibmodule.c    -- Wrapper of ZLib Compression API (GZip Format) |   # zlibmodule.c    -- Wrapper of ZLib Compression API (GZip Format) | ||||||
|   # puremodule.c    -- Wrapper of Purify Debugging API (Probably Non-OS/2) |   # puremodule.c    -- Wrapper of Purify Debugging API (Probably Non-OS/2) | ||||||
|   # dlmodule.c      -- Some Wierd Form of Data Processing Module |   # dlmodule.c      -- Some Weird Form of Data Processing Module | ||||||
|   # xxmodule.c      -- Template to Create Your Own Module |   # xxmodule.c      -- Template to Create Your Own Module | ||||||
| 
 | 
 | ||||||
| # | # | ||||||
|  |  | ||||||
|  | @ -38,7 +38,7 @@ | ||||||
| # rpyron 2002-05-07 | # rpyron 2002-05-07 | ||||||
| # Robert Pyron <rpyron@alum.mit.edu> | # Robert Pyron <rpyron@alum.mit.edu> | ||||||
| # 1. BUGFIX: In function makefile(), strip blanks from the nodename. | # 1. BUGFIX: In function makefile(), strip blanks from the nodename. | ||||||
| #    This is necesary to match the behavior of parser.makeref() and | #    This is necessary to match the behavior of parser.makeref() and | ||||||
| #    parser.do_node(). | #    parser.do_node(). | ||||||
| # 2. BUGFIX fixed KeyError in end_ifset (well, I may have just made | # 2. BUGFIX fixed KeyError in end_ifset (well, I may have just made | ||||||
| #    it go away, rather than fix it) | #    it go away, rather than fix it) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mark Dickinson
						Mark Dickinson