Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8f26565b
Commit
8f26565b
authored
Apr 19, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spelling (inital), grammar (may translates) in documentation, comments
parent
0d88c652
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
15 additions
and
15 deletions
+15
-15
Doc/library/tempfile.rst
Doc/library/tempfile.rst
+1
-1
Doc/library/test.rst
Doc/library/test.rst
+1
-1
Doc/whatsnew/2.2.rst
Doc/whatsnew/2.2.rst
+1
-1
Lib/gzip.py
Lib/gzip.py
+1
-1
Lib/optparse.py
Lib/optparse.py
+1
-1
Lib/test/test_tracemalloc.py
Lib/test/test_tracemalloc.py
+1
-1
Misc/HISTORY
Misc/HISTORY
+1
-1
Misc/NEWS
Misc/NEWS
+3
-3
Modules/_io/stringio.c
Modules/_io/stringio.c
+2
-2
Objects/typeobject.c
Objects/typeobject.c
+2
-2
Programs/_testembed.c
Programs/_testembed.c
+1
-1
No files found.
Doc/library/tempfile.rst
View file @
8f26565b
...
...
@@ -256,7 +256,7 @@ to specify the directory and this is the recommend approach.
module.
If ``tempdir`` is unset or ``None`` at any call to any of the above
functions except :func:`gettempprefix` it is initalized following the
functions except :func:`gettempprefix` it is init
i
alized following the
algorithm described in :func:`gettempdir`.
.. _tempfile-examples:
...
...
Doc/library/test.rst
View file @
8f26565b
...
...
@@ -550,7 +550,7 @@ The :mod:`test.support` module defines the following functions:
or passed to an external program (i.e. the ``-accept`` argument to
openssl's s_server mode). Always prefer :func:`bind_port` over
:func:`find_unused_port` where possible. Using a hard coded port is
discouraged since it can make
s
multiple instances of the test impossible to
discouraged since it can make multiple instances of the test impossible to
run simultaneously, which is a problem for buildbots.
...
...
Doc/whatsnew/2.2.rst
View file @
8f26565b
...
...
@@ -758,7 +758,7 @@ Here are the changes 2.2 introduces:
operators.
* Python 2.2 supports some command-line arguments for testing whether code will
work
s
with the changed division semantics. Running python with :option:`-Q
work with the changed division semantics. Running python with :option:`-Q
warn` will cause a warning to be issued whenever division is applied to two
integers. You can use this to find code that's affected by the change and fix
it. By default, Python 2.2 will simply perform classic division without a
...
...
Lib/gzip.py
View file @
8f26565b
...
...
@@ -133,7 +133,7 @@ class GzipFile(_compression.BaseStream):
a file object.
When fileobj is not None, the filename argument is only used to be
included in the gzip file header, which may include
s
the original
included in the gzip file header, which may include the original
filename of the uncompressed file. It defaults to the filename of
fileobj, if discernible; otherwise, it defaults to the empty string,
and in this case the original filename is not included in the header.
...
...
Lib/optparse.py
View file @
8f26565b
...
...
@@ -900,7 +900,7 @@ class OptionContainer:
_short_opt : { string : Option }
dictionary mapping short option strings, eg. "-f" or "-X",
to the Option instances that implement them. If an Option
has multiple short option strings, it will appear
s
in this
has multiple short option strings, it will appear in this
dictionary multiple times. [1]
_long_opt : { string : Option }
dictionary mapping long option strings, eg. "--file" or
...
...
Lib/test/test_tracemalloc.py
View file @
8f26565b
...
...
@@ -253,7 +253,7 @@ class TestTracemallocEnabled(unittest.TestCase):
snapshot
.
dump
(
support
.
TESTFN
)
self
.
addCleanup
(
support
.
unlink
,
support
.
TESTFN
)
# load() should recreate
s
the attribute
# load() should recreate the attribute
snapshot2
=
tracemalloc
.
Snapshot
.
load
(
support
.
TESTFN
)
self
.
assertEqual
(
snapshot2
.
test_attr
,
"new"
)
...
...
Misc/HISTORY
View file @
8f26565b
...
...
@@ -23743,7 +23743,7 @@ the first class with an applicable hook wins. Makes more sense.
- Changed the checks made in Py_Initialize() and Py_Finalize(). It is
now legal to call these more than once. The first call to
Py_Initialize() initializes, the first call to Py_Finalize()
finalizes. There's also a new API, Py_IsInitalized() which checks
finalizes. There's also a new API, Py_IsInit
i
alized() which checks
whether we are already initialized (in case you want to leave things
as they were).
Misc/NEWS
View file @
8f26565b
...
...
@@ -5238,8 +5238,8 @@ Library
- Issue #19448: Add private API to SSL module to lookup ASN.1 objects by OID,
NID, short name and long name.
- Issue #19282: dbm.open now supports the context management protocol.
(Inital
patch by Claudiu Popa)
- Issue #19282: dbm.open now supports the context management protocol.
(Initial
patch by Claudiu Popa)
- Issue #8311: Added support for writing any bytes-like objects in the aifc,
sunau, and wave modules.
...
...
@@ -5333,7 +5333,7 @@ Library
- Issue #19227: Remove pthread_atfork() handler. The handler was added to
solve #18747 but has caused issues.
- Issue #19420: Fix reference leak in module initalization code of
- Issue #19420: Fix reference leak in module init
i
alization code of
_hashopenssl.c
- Issue #19329: Optimized compiling charsets in regular expressions.
...
...
Modules/_io/stringio.c
View file @
8f26565b
...
...
@@ -913,8 +913,8 @@ stringio_setstate(stringio *self, PyObject *state)
Py_DECREF
(
initarg
);
/* Restore the buffer state. Even if __init__ did initialize the buffer,
we have to initialize it again since __init__ may translate
s
the
newlines in the inital_value string. We clearly do not want that
we have to initialize it again since __init__ may translate the
newlines in the init
i
al_value string. We clearly do not want that
because the string value in the state tuple has already been translated
once by __init__. So we do not take any chance and replace object's
buffer completely. */
...
...
Objects/typeobject.c
View file @
8f26565b
...
...
@@ -3901,7 +3901,7 @@ _PyObject_GetState(PyObject *obj, int required)
}
}
/* The list is stored on the class so it may mutate
s
while we
/* The list is stored on the class so it may mutate while we
iterate over it */
if
(
slotnames_size
!=
Py_SIZE
(
slotnames
))
{
PyErr_Format
(
PyExc_RuntimeError
,
...
...
@@ -4035,7 +4035,7 @@ _PyObject_GetNewArguments(PyObject *obj, PyObject **args, PyObject **kwargs)
}
/* The object does not have __getnewargs_ex__ and __getnewargs__. This may
mean
s
__new__ does not takes any arguments on this object, or that the
mean __new__ does not takes any arguments on this object, or that the
object does not implement the reduce protocol for pickling or
copying. */
*
args
=
NULL
;
...
...
Programs/_testembed.c
View file @
8f26565b
...
...
@@ -17,7 +17,7 @@ static void _testembed_Py_Initialize(void)
/*****************************************************
* Test repeated initalisation and subinterpreters
* Test repeated init
i
alisation and subinterpreters
*****************************************************/
static
void
print_subinterp
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment