| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -256,7 +256,7 @@ to specify the directory and this is the recommend approach. | |||
| 256 | 256 | module. | |
| 257 | 257 | ||
| 258 | 258 | If ``tempdir`` is unset or ``None`` at any call to any of the above | |
| 259 | - functions except :func:`gettempprefix` it is initalized following the | ||
| 259 | + functions except :func:`gettempprefix` it is initialized following the | ||
| 260 | 260 | algorithm described in :func:`gettempdir`. | |
| 261 | 261 | ||
| 262 | 262 | .. _tempfile-examples: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -550,7 +550,7 @@ The :mod:`test.support` module defines the following functions: | |||
| 550 | 550 | or passed to an external program (i.e. the ``-accept`` argument to | |
| 551 | 551 | openssl's s_server mode). Always prefer :func:`bind_port` over | |
| 552 | 552 | :func:`find_unused_port` where possible. Using a hard coded port is | |
| 553 | - discouraged since it can makes multiple instances of the test impossible to | ||
| 553 | + discouraged since it can make multiple instances of the test impossible to | ||
| 554 | 554 | run simultaneously, which is a problem for buildbots. | |
| 555 | 555 | ||
| 556 | 556 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -758,7 +758,7 @@ Here are the changes 2.2 introduces: | |||
| 758 | 758 | operators. | |
| 759 | 759 | ||
| 760 | 760 | * Python 2.2 supports some command-line arguments for testing whether code will | |
| 761 | - works with the changed division semantics. Running python with :option:`-Q | ||
| 761 | + work with the changed division semantics. Running python with :option:`-Q | ||
| 762 | 762 | warn` will cause a warning to be issued whenever division is applied to two | |
| 763 | 763 | integers. You can use this to find code that's affected by the change and fix | |
| 764 | 764 | it. By default, Python 2.2 will simply perform classic division without a | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -133,7 +133,7 @@ def __init__(self, filename=None, mode=None, | |||
| 133 | 133 | a file object. | |
| 134 | 134 | ||
| 135 | 135 | When fileobj is not None, the filename argument is only used to be | |
| 136 | - included in the gzip file header, which may includes the original | ||
| 136 | + included in the gzip file header, which may include the original | ||
| 137 | 137 | filename of the uncompressed file. It defaults to the filename of | |
| 138 | 138 | fileobj, if discernible; otherwise, it defaults to the empty string, | |
| 139 | 139 | and in this case the original filename is not included in the header. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -901,7 +901,7 @@ class OptionContainer: | |||
| 901 | 901 | _short_opt : { string : Option } | |
| 902 | 902 | dictionary mapping short option strings, eg. "-f" or "-X", | |
| 903 | 903 | to the Option instances that implement them. If an Option | |
| 904 | - has multiple short option strings, it will appears in this | ||
| 904 | + has multiple short option strings, it will appear in this | ||
| 905 | 905 | dictionary multiple times. [1] | |
| 906 | 906 | _long_opt : { string : Option } | |
| 907 | 907 | dictionary mapping long option strings, eg. "--file" or | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -261,7 +261,7 @@ def test_snapshot_save_attr(self): | |||
| 261 | 261 | snapshot.dump(support.TESTFN) | |
| 262 | 262 | self.addCleanup(support.unlink, support.TESTFN) | |
| 263 | 263 | ||
| 264 | - # load() should recreates the attribute | ||
| 264 | + # load() should recreate the attribute | ||
| 265 | 265 | snapshot2 = tracemalloc.Snapshot.load(support.TESTFN) | |
| 266 | 266 | self.assertEqual(snapshot2.test_attr, "new") | |
| 267 | 267 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23743,7 +23743,7 @@ the first class with an applicable hook wins. Makes more sense. | |||
| 23743 | 23743 | - Changed the checks made in Py_Initialize() and Py_Finalize(). It is | |
| 23744 | 23744 | now legal to call these more than once. The first call to | |
| 23745 | 23745 | Py_Initialize() initializes, the first call to Py_Finalize() | |
| 23746 | - finalizes. There's also a new API, Py_IsInitalized() which checks | ||
| 23746 | + finalizes. There's also a new API, Py_IsInitialized() which checks | ||
| 23747 | 23747 | whether we are already initialized (in case you want to leave things | |
| 23748 | 23748 | as they were). | |
| 23749 | 23749 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5851,8 +5851,8 @@ Library | |||
| 5851 | 5851 | - Issue #19448: Add private API to SSL module to lookup ASN.1 objects by OID, | |
| 5852 | 5852 | NID, short name and long name. | |
| 5853 | 5853 | ||
| 5854 | - - Issue #19282: dbm.open now supports the context management protocol. (Inital | ||
| 5855 | - patch by Claudiu Popa) | ||
| 5854 | + - Issue #19282: dbm.open now supports the context management protocol. | ||
| 5855 | + (Initial patch by Claudiu Popa) | ||
| 5856 | 5856 | ||
| 5857 | 5857 | - Issue #8311: Added support for writing any bytes-like objects in the aifc, | |
| 5858 | 5858 | sunau, and wave modules. | |
@@ -5946,7 +5946,7 @@ Library | |||
| 5946 | 5946 | - Issue #19227: Remove pthread_atfork() handler. The handler was added to | |
| 5947 | 5947 | solve #18747 but has caused issues. | |
| 5948 | 5948 | ||
| 5949 | - - Issue #19420: Fix reference leak in module initalization code of | ||
| 5949 | + - Issue #19420: Fix reference leak in module initialization code of | ||
| 5950 | 5950 | _hashopenssl.c | |
| 5951 | 5951 | ||
| 5952 | 5952 | - Issue #19329: Optimized compiling charsets in regular expressions. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -913,8 +913,8 @@ stringio_setstate(stringio *self, PyObject *state) | |||
| 913 | 913 | Py_DECREF(initarg); | |
| 914 | 914 | ||
| 915 | 915 | /* Restore the buffer state. Even if __init__ did initialize the buffer, | |
| 916 | - we have to initialize it again since __init__ may translates the | ||
| 917 | - newlines in the inital_value string. We clearly do not want that | ||
| 916 | + we have to initialize it again since __init__ may translate the | ||
| 917 | + newlines in the initial_value string. We clearly do not want that | ||
| 918 | 918 | because the string value in the state tuple has already been translated | |
| 919 | 919 | once by __init__. So we do not take any chance and replace object's | |
| 920 | 920 | buffer completely. */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3925,7 +3925,7 @@ _PyObject_GetState(PyObject *obj, int required) | |||
| 3925 | 3925 | } | |
| 3926 | 3926 | } | |
| 3927 | 3927 | ||
| 3928 | - /* The list is stored on the class so it may mutates while we | ||
| 3928 | + /* The list is stored on the class so it may mutate while we | ||
| 3929 | 3929 | iterate over it */ | |
| 3930 | 3930 | if (slotnames_size != Py_SIZE(slotnames)) { | |
| 3931 | 3931 | PyErr_Format(PyExc_RuntimeError, | |
@@ -4059,7 +4059,7 @@ _PyObject_GetNewArguments(PyObject *obj, PyObject **args, PyObject **kwargs) | |||
| 4059 | 4059 | } | |
| 4060 | 4060 | ||
| 4061 | 4061 | /* The object does not have __getnewargs_ex__ and __getnewargs__. This may | |
| 4062 | - means __new__ does not takes any arguments on this object, or that the | ||
| 4062 | + mean __new__ does not takes any arguments on this object, or that the | ||
| 4063 | 4063 | object does not implement the reduce protocol for pickling or | |
| 4064 | 4064 | copying. */ | |
| 4065 | 4065 | *args = NULL; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments