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
e2eacc02
Commit
e2eacc02
authored
Jul 28, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #23943: Fix typos. Patch by Piotr Kasprzyk.
parent
801110b3
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
19 additions
and
19 deletions
+19
-19
Doc/library/wsgiref.rst
Doc/library/wsgiref.rst
+1
-1
Include/object.h
Include/object.h
+1
-1
Include/pyport.h
Include/pyport.h
+1
-1
Lib/idlelib/SearchEngine.py
Lib/idlelib/SearchEngine.py
+1
-1
Lib/idlelib/idle_test/mock_tk.py
Lib/idlelib/idle_test/mock_tk.py
+1
-1
Lib/test/decimaltestdata/exp.decTest
Lib/test/decimaltestdata/exp.decTest
+1
-1
Lib/test/test_doctest.py
Lib/test/test_doctest.py
+2
-2
Lib/test/test_socket.py
Lib/test/test_socket.py
+1
-1
Lib/test/test_threading.py
Lib/test/test_threading.py
+1
-1
Misc/HISTORY
Misc/HISTORY
+3
-3
Misc/NEWS
Misc/NEWS
+1
-1
Misc/cheatsheet
Misc/cheatsheet
+2
-2
Modules/_ctypes/_ctypes.c
Modules/_ctypes/_ctypes.c
+1
-1
Modules/_ctypes/ctypes.h
Modules/_ctypes/ctypes.h
+1
-1
Modules/_ctypes/libffi/ltmain.sh
Modules/_ctypes/libffi/ltmain.sh
+1
-1
No files found.
Doc/library/wsgiref.rst
View file @
e2eacc02
...
...
@@ -711,7 +711,7 @@ This is a working "Hello World" WSGI application::
# object that accepts two arguments. For that purpose, we're going to
# use a function (note that you're not limited to a function, you can
# use a class for example). The first argument passed to the function
# is a dictionary containing CGI-style env
r
ironment variables and the
# is a dictionary containing CGI-style environment variables and the
# second variable is the callable object (see PEP 333).
def hello_world_app(environ, start_response):
status = '200 OK' # HTTP Status
...
...
Include/object.h
View file @
e2eacc02
...
...
@@ -778,7 +778,7 @@ PyAPI_FUNC(void) _Py_AddToAllObjects(PyObject *, int force);
} while (0)
/* Safely decref `op` and set `op` to NULL, especially useful in tp_clear
* and tp_dealloc implementatons.
* and tp_dealloc implementat
i
ons.
*
* Note that "the obvious" code can be deadly:
*
...
...
Include/pyport.h
View file @
e2eacc02
...
...
@@ -265,7 +265,7 @@ typedef Py_intptr_t Py_ssize_t;
* for platforms that support that.
*
* If PY_LOCAL_AGGRESSIVE is defined before python.h is included, more
* "aggressive" inlining/optimizaion is enabled for the entire module. This
* "aggressive" inlining/optimiza
t
ion is enabled for the entire module. This
* may lead to code bloat, and may slow things down for those reasons. It may
* also lead to errors, if the code relies on pointer aliasing. Use with
* care.
...
...
Lib/idlelib/SearchEngine.py
View file @
e2eacc02
...
...
@@ -107,7 +107,7 @@ class SearchEngine:
It directly return the result of that call.
Text is a text widget. Prog is a precompiled pattern.
The ok parameteris a bit complicated as it has two effects.
The ok parameter
is a bit complicated as it has two effects.
If there is a selection, the search begin at either end,
depending on the direction setting and ok, with ok meaning that
...
...
Lib/idlelib/idle_test/mock_tk.py
View file @
e2eacc02
"""Classes that replace tkinter gui objects used by an object being tested.
A gui object is anything with a master or parent parame
n
ter, which is
A gui object is anything with a master or parent parameter, which is
typically required in spite of what the doc strings say.
"""
...
...
Lib/test/decimaltestdata/exp.decTest
View file @
e2eacc02
...
...
@@ -19,7 +19,7 @@
------------------------------------------------------------------------
version: 2.59
-- Tests of the exponential funtion. Currently all testcases here
-- Tests of the exponential fun
c
tion. Currently all testcases here
-- show results which are correctly rounded (within <= 0.5 ulp).
extended: 1
...
...
Lib/test/test_doctest.py
View file @
e2eacc02
...
...
@@ -2113,7 +2113,7 @@ def test_DocTestSuite():
...
AttributeError: 'module' object has no attribute 'sillySetup'
The setUp and tearDown funtions are passed test objects. Here
The setUp and tearDown fun
c
tions are passed test objects. Here
we'll use the setUp function to supply the missing variable y:
>>> def setUp(test):
...
...
@@ -2259,7 +2259,7 @@ def test_DocFileSuite():
...
AttributeError: 'module' object has no attribute 'sillySetup'
The setUp and tearDown funtions are passed test objects.
The setUp and tearDown fun
c
tions are passed test objects.
Here, we'll use a setUp function to set the favorite color in
test_doctest.txt:
...
...
Lib/test/test_socket.py
View file @
e2eacc02
...
...
@@ -299,7 +299,7 @@ class GeneralModuleTests(unittest.TestCase):
"Error raising socket exception."
)
def
testSendtoErrors
(
self
):
# Testing that sendto doe
ns
't masks failures. See #10169.
# Testing that sendto doe
sn
't masks failures. See #10169.
s
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_DGRAM
)
self
.
addCleanup
(
s
.
close
)
s
.
bind
((
''
,
0
))
...
...
Lib/test/test_threading.py
View file @
e2eacc02
...
...
@@ -739,7 +739,7 @@ class ThreadJoinOnShutdown(BaseTestCase):
def
generator
():
while
1
:
yield
"gener
e
ator"
yield
"generator"
def
callback
():
if
callback
.
gen
is
None
:
...
...
Misc/HISTORY
View file @
e2eacc02
...
...
@@ -10633,7 +10633,7 @@ Thu Feb 18 20:51:50 1999 Fred Drake <fdrake@eric.cnri.reston.va.us>
Bow to font-lock at the end of the docstring, since it throws stuff
off.
Make sure the path paramter to readmodule() is a list before adding it
Make sure the path param
e
ter to readmodule() is a list before adding it
with sys.path, or the addition could fail.
...
...
@@ -12685,7 +12685,7 @@ an underscore and used to initialize the pointer.
- The warning about a thread still having a frame now only happens in
verbose mode.
- Change the signal fin
i
alization so that it also resets the signal
- Change the signal finalization so that it also resets the signal
handlers. After this has been called, our signal handlers are no
longer active!
...
...
@@ -14537,7 +14537,7 @@ some more documentation.
fixed.
- The test of negative number to the float power has been moved from the
built-in pow() functi
n to floatobject.c (so complex numbers can yield the
built-in pow() functi
on to floatobject.c (so complex numbers can yield the
correct result).
- The bug introduced in beta2 where shared libraries loaded (using
...
...
Misc/NEWS
View file @
e2eacc02
...
...
@@ -1338,7 +1338,7 @@ Library
(including empty directories) in ZIP file.
- Issue #22449: In the ssl.SSLContext.load_default_certs, consult the
enviromental variables SSL_CERT_DIR and SSL_CERT_FILE on Windows.
enviro
n
mental variables SSL_CERT_DIR and SSL_CERT_FILE on Windows.
- Issue #8473: doctest.testfile now uses universal newline mode to read
the test file.
...
...
Misc/cheatsheet
View file @
e2eacc02
...
...
@@ -975,7 +975,7 @@ hex(x) Converts a number x to a hexadecimal string.
id(object) Returns a unique 'identity' integer for an object.
input([prompt]) Prints prompt if given. Reads input and evaluates it.
Converts a number or a string to a plain integer. Optional
int(x[, base]) base parame
n
ter specifies base from which to convert string
int(x[, base]) base parameter specifies base from which to convert string
values.
intern(aString) Enters aString in the table of "interned strings"
andreturns the string. Interned strings are 'immortals'.
...
...
@@ -991,7 +991,7 @@ list(sequence) Converts sequence into a list. If already a list,returns a
copy of it.
locals() Returns a dictionary containing current local variables.
Converts a number or a string to a long integer. Optional
long(x[, base]) base parame
n
ter specifies base from which to convert string
long(x[, base]) base parameter specifies base from which to convert string
values.
Applies function to every item of list and returns a listof
map(function, list, the results. If additional arguments are passed,function
...
...
Modules/_ctypes/_ctypes.c
View file @
e2eacc02
...
...
@@ -3985,7 +3985,7 @@ PyCFuncPtr_call(PyCFuncPtrObject *self, PyObject *inargs, PyObject *kwds)
self
,
callargs
,
NULL
);
/* If the errcheck funtion failed, return NULL.
/* If the errcheck fun
c
tion failed, return NULL.
If the errcheck function returned callargs unchanged,
continue normal processing.
If the errcheck function returned something else,
...
...
Modules/_ctypes/ctypes.h
View file @
e2eacc02
...
...
@@ -229,7 +229,7 @@ typedef struct {
remember is that in PyCArrayType_new the ffi_type fields must be filled in -
so far it was unneeded because libffi doesn't support arrays at all
(because they are passed as pointers to function calls anyway). But it's
too much risk to change that now, and there are other fields which doen't
too much risk to change that now, and there are other fields which doe
s
n't
belong into this structure anyway. Maybe in ctypes 2.0... (ctypes 2000?)
*/
Py_ssize_t
size
;
/* number of bytes */
...
...
Modules/_ctypes/libffi/ltmain.sh
View file @
e2eacc02
...
...
@@ -1438,7 +1438,7 @@ func_run_hooks ()
case
"
$hookable_fns
"
in
*
"
$1
"
*
)
;;
*
)
func_fatal_error
"'
$1
' does not support hook func
ions.n
"
;;
*
)
func_fatal_error
"'
$1
' does not support hook func
tions.
"
;;
esac
eval
_G_hook_fns
=
\$
$1_hooks
;
shift
...
...
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