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
8d496add
Commit
8d496add
authored
Jun 02, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #27171: Fix typos in documentation, code comments, and tests
parent
56da8fa5
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
38 additions
and
38 deletions
+38
-38
Demo/tkinter/ttk/ttkcalendar.py
Demo/tkinter/ttk/ttkcalendar.py
+1
-1
Include/pymacconfig.h
Include/pymacconfig.h
+1
-1
Lib/Cookie.py
Lib/Cookie.py
+1
-1
Lib/_osx_support.py
Lib/_osx_support.py
+6
-6
Lib/_pyio.py
Lib/_pyio.py
+1
-1
Lib/bsddb/test/test_all.py
Lib/bsddb/test/test_all.py
+1
-1
Lib/decimal.py
Lib/decimal.py
+1
-1
Lib/distutils/tests/test_build_ext.py
Lib/distutils/tests/test_build_ext.py
+1
-1
Lib/hotshot/__init__.py
Lib/hotshot/__init__.py
+1
-1
Lib/idlelib/AutoComplete.py
Lib/idlelib/AutoComplete.py
+1
-1
Lib/idlelib/MultiCall.py
Lib/idlelib/MultiCall.py
+1
-1
Lib/idlelib/rpc.py
Lib/idlelib/rpc.py
+1
-1
Lib/locale.py
Lib/locale.py
+1
-1
Lib/pdb.doc
Lib/pdb.doc
+1
-1
Lib/plat-mac/bgenlocations.py
Lib/plat-mac/bgenlocations.py
+1
-1
Lib/test/test_socket.py
Lib/test/test_socket.py
+2
-2
Lib/test/test_sys_setprofile.py
Lib/test/test_sys_setprofile.py
+1
-1
Misc/HISTORY
Misc/HISTORY
+1
-1
Misc/NEWS
Misc/NEWS
+5
-5
Modules/_bsddb.c
Modules/_bsddb.c
+1
-1
Modules/ld_so_aix.in
Modules/ld_so_aix.in
+3
-3
Modules/readline.c
Modules/readline.c
+1
-1
Objects/fileobject.c
Objects/fileobject.c
+1
-1
Tools/bgen/bgen/bgenVariable.py
Tools/bgen/bgen/bgenVariable.py
+1
-1
setup.py
setup.py
+2
-2
No files found.
Demo/tkinter/ttk/ttkcalendar.py
View file @
8d496add
...
...
@@ -191,7 +191,7 @@ class Calendar(ttk.Frame):
self
.
_date
=
self
.
_date
-
self
.
timedelta
(
days
=
1
)
self
.
_date
=
self
.
datetime
(
self
.
_date
.
year
,
self
.
_date
.
month
,
1
)
self
.
_build_calendar
()
# reconstuct calendar
self
.
_build_calendar
()
# reconst
r
uct calendar
def
_next_month
(
self
):
"""Update calendar to show the next month."""
...
...
Include/pymacconfig.h
View file @
8d496add
...
...
@@ -66,7 +66,7 @@
* Therefore surpress the toolbox-glue in 64-bit mode.
*/
/* In 64-bit mode setpgrp always has no argments, in 32-bit
/* In 64-bit mode setpgrp always has no arg
u
ments, in 32-bit
* mode that depends on the compilation environment
*/
# undef SETPGRP_HAVE_ARG
...
...
Lib/Cookie.py
View file @
8d496add
...
...
@@ -190,7 +190,7 @@ as a string.
Backwards Compatibility
-----------------------
In order to keep compatibilty with earlier versions of Cookie.py,
In order to keep compatibil
i
ty with earlier versions of Cookie.py,
it is still possible to use Cookie.Cookie() to create a Cookie. In
fact, this simply returns a SmartCookie.
...
...
Lib/_osx_support.py
View file @
8d496add
...
...
@@ -157,7 +157,7 @@ def _find_appropriate_compiler(_config_vars):
# gcc-4.2 is either not present, or a copy of '
llvm
-
gcc
' that
# miscompiles Python.
# skip checks if the compiler was overriden with a CC env variable
# skip checks if the compiler was overrid
d
en with a CC env variable
if '
CC
' in os.environ:
return _config_vars
...
...
@@ -193,7 +193,7 @@ def _find_appropriate_compiler(_config_vars):
if
cc
!=
oldcc
:
# Found a replacement compiler.
# Modify config vars using new compiler, if not already explicitly
# overriden by an env variable, preserving additional arguments.
# overrid
d
en by an env variable, preserving additional arguments.
for
cv
in
_COMPILER_CONFIG_VARS
:
if
cv
in
_config_vars
and
cv
not
in
os
.
environ
:
cv_split
=
_config_vars
[
cv
].
split
()
...
...
@@ -207,7 +207,7 @@ def _remove_universal_flags(_config_vars):
"""Remove all universal build arguments from config vars"""
for
cv
in
_UNIVERSAL_CONFIG_VARS
:
# Do not alter a config var explicitly overriden by env var
# Do not alter a config var explicitly overrid
d
en by env var
if
cv
in
_config_vars
and
cv
not
in
os
.
environ
:
flags
=
_config_vars
[
cv
]
flags
=
re
.
sub
(
'-arch
\
s+
\
w+
\
s
'
, '
', flags)
...
...
@@ -228,7 +228,7 @@ def _remove_unsupported_archs(_config_vars):
# build extensions on OSX 10.7 and later with the prebuilt
# 32-bit installer on the python.org website.
# skip checks if the compiler was overriden with a CC env variable
# skip checks if the compiler was overrid
d
en with a CC env variable
if '
CC
' in os.environ:
return _config_vars
...
...
@@ -244,7 +244,7 @@ def _remove_unsupported_archs(_config_vars):
# across Xcode and compiler versions, there is no reliable way
# to be sure why it failed. Assume here it was due to lack of
# PPC support and remove the related '-arch' flags from each
# config variables not explicitly overriden by an environment
# config variables not explicitly overrid
d
en by an environment
# variable. If the error was for some other reason, we hope the
# failure will show up again when trying to compile an extension
# module.
...
...
@@ -292,7 +292,7 @@ def _check_for_unavailable_sdk(_config_vars):
sdk
=
m
.
group
(
1
)
if
not
os
.
path
.
exists
(
sdk
):
for
cv
in
_UNIVERSAL_CONFIG_VARS
:
# Do not alter a config var explicitly overriden by env var
# Do not alter a config var explicitly overrid
d
en by env var
if
cv
in
_config_vars
and
cv
not
in
os
.
environ
:
flags
=
_config_vars
[
cv
]
flags
=
re
.
sub
(
r'-isysroot\
s+
\S+(?:\
s|$)
', '
', flags)
...
...
Lib/_pyio.py
View file @
8d496add
...
...
@@ -997,7 +997,7 @@ class BufferedReader(_BufferedIOMixin):
break
avail
+=
len
(
chunk
)
chunks
.
append
(
chunk
)
# n is more th
e
n avail only when an EOF occurred or when
# n is more th
a
n avail only when an EOF occurred or when
# read() would have blocked.
n
=
min
(
n
,
avail
)
out
=
b""
.
join
(
chunks
)
...
...
Lib/bsddb/test/test_all.py
View file @
8d496add
...
...
@@ -523,7 +523,7 @@ def get_new_database_path() :
return
path
# This path can be overriden via "set_test_path_prefix()".
# This path can be overrid
d
en via "set_test_path_prefix()".
import
os
,
os
.
path
get_new_path
.
prefix
=
os
.
path
.
join
(
os
.
environ
.
get
(
"TMPDIR"
,
os
.
path
.
join
(
os
.
sep
,
"tmp"
)),
"z-Berkeley_DB"
)
...
...
Lib/decimal.py
View file @
8d496add
...
...
@@ -1082,7 +1082,7 @@ class Decimal(object):
def
__pos__
(
self
,
context
=
None
):
"""Returns a copy, unless it is a sNaN.
Rounds the number (if more th
e
n precision digits)
Rounds the number (if more th
a
n precision digits)
"""
if
self
.
_is_special
:
ans
=
self
.
_check_nans
(
context
=
context
)
...
...
Lib/distutils/tests/test_build_ext.py
View file @
8d496add
...
...
@@ -251,7 +251,7 @@ class BuildExtTestCase(support.TempdirManager,
def
test_compiler_option
(
self
):
# cmd.compiler is an option and
# should not be overriden by a compiler instance
# should not be overrid
d
en by a compiler instance
# when the command is run
dist
=
Distribution
()
cmd
=
build_ext
(
dist
)
...
...
Lib/hotshot/__init__.py
View file @
8d496add
...
...
@@ -72,7 +72,7 @@ class Profile:
Additional positional and keyword arguments may be passed
along; the result of the call is returned, and exceptions are
allowed to prop
o
gate cleanly, while ensuring that profiling is
allowed to prop
a
gate cleanly, while ensuring that profiling is
disabled on the way out.
"""
return
self
.
_prof
.
runcall
(
func
,
args
,
kw
)
Lib/idlelib/AutoComplete.py
View file @
8d496add
"""AutoComplete.py - An IDLE extension for automatically completing names.
This extension can complete either attribute names o
f
file names. It can pop
This extension can complete either attribute names o
r
file names. It can pop
a window with all available names, for the user to select from.
"""
import
os
...
...
Lib/idlelib/MultiCall.py
View file @
8d496add
...
...
@@ -101,7 +101,7 @@ class _SimpleBinder:
self
.
widget
.
unbind
(
self
.
widgetinst
,
self
.
sequence
,
self
.
handlerid
)
# An int in range(1 << len(_modifiers)) represents a combination of modifiers
# (if the least signific
e
nt bit is on, _modifiers[0] is on, and so on).
# (if the least signific
a
nt bit is on, _modifiers[0] is on, and so on).
# _state_subsets gives for each combination of modifiers, or *state*,
# a list of the states which are a subset of it. This list is ordered by the
# number of modifiers is the state - the most specific state comes first.
...
...
Lib/idlelib/rpc.py
View file @
8d496add
"""RPC Implemention, originally written for the Python Idle IDE
"""RPC Implement
at
ion, originally written for the Python Idle IDE
For security reasons, GvR requested that Idle's Python execution server process
connect to the Idle process, which listens for the connection. Since Idle has
...
...
Lib/locale.py
View file @
8d496add
...
...
@@ -16,7 +16,7 @@ import re
import
operator
import
functools
# keep a copy of the builtin str type, because 'str' name is overriden
# keep a copy of the builtin str type, because 'str' name is overrid
d
en
# in globals by a function below
_str
=
str
...
...
Lib/pdb.doc
View file @
8d496add
...
...
@@ -48,7 +48,7 @@ If a file ".pdbrc" exists in your home directory or in the current
directory, it is read in and executed as if it had been typed at the
debugger prompt. This is particularly useful for aliases. If both
files exist, the one in the home directory is read first and aliases
defined there can be overriden by the local file.
defined there can be overrid
d
en by the local file.
Aside from aliases, the debugger is not directly programmable; but it
is implemented as a class from which you can derive your own debugger
...
...
Lib/plat-mac/bgenlocations.py
View file @
8d496add
...
...
@@ -34,7 +34,7 @@ TOOLBOXDIR="/Users/jack/src/python/Lib/plat-mac/Carbon"
# Creator for C files:
CREATOR
=
"CWIE"
# The previous definitions can be overriden by creating a module
# The previous definitions can be overrid
d
en by creating a module
# bgenlocationscustomize.py and putting it in site-packages (or anywere else
# on sys.path, actually)
try
:
...
...
Lib/test/test_socket.py
View file @
8d496add
...
...
@@ -708,7 +708,7 @@ class GeneralModuleTests(unittest.TestCase):
pass
def
check_sendall_interrupted
(
self
,
with_timeout
):
# socketpair() is not stricly required, but it makes things easier.
# socketpair() is not stric
t
ly required, but it makes things easier.
if
not
hasattr
(
signal
,
'alarm'
)
or
not
hasattr
(
socket
,
'socketpair'
):
self
.
skipTest
(
"signal.alarm and socket.socketpair required for this test"
)
# Our signal handlers clobber the C errno by calling a math function
...
...
@@ -827,7 +827,7 @@ class BasicTCPTest(SocketConnectedTest):
self
.
serv_conn
.
sendall
(
big_chunk
)
@
unittest
.
skipUnless
(
hasattr
(
socket
,
'fromfd'
),
'socket.fromfd not availble'
)
'socket.fromfd not avail
a
ble'
)
def
testFromFd
(
self
):
# Testing fromfd()
fd
=
self
.
cli_conn
.
fileno
()
...
...
Lib/test/test_sys_setprofile.py
View file @
8d496add
...
...
@@ -165,7 +165,7 @@ class ProfileHookTestCase(TestCaseBase):
(
1
,
'return'
,
g_ident
),
])
def
test_exception_prop
o
gation
(
self
):
def
test_exception_prop
a
gation
(
self
):
def
f
(
p
):
1.
/
0
def
g
(
p
):
...
...
Misc/HISTORY
View file @
8d496add
...
...
@@ -10009,7 +10009,7 @@ Fri Mar 26 22:36:00 1999 Fred Drake <fdrake@eric.cnri.reston.va.us>
* Tools/scripts/dutree.py:
During display, if EPIPE is raised, it's probably because a pager was
killed. Discard the error in that case, but prop
o
gate it otherwise.
killed. Discard the error in that case, but prop
a
gate it otherwise.
Fri Mar 26 16:20:45 1999 Guido van Rossum
<guido
@
eric
.
cnri
.
reston
.
va
.
us
>
...
...
Misc/NEWS
View file @
8d496add
...
...
@@ -2344,8 +2344,8 @@ Library
with port None or "0" and flags AI_NUMERICSERV.
- Issue #18080: When building a C extension module on OS X, if the compiler
is overriden with the CC environment variable, use the new compiler as
the default for linking if LDSHARED is not also overriden. This restores
is overrid
d
en with the CC environment variable, use the new compiler as
the default for linking if LDSHARED is not also overrid
d
en. This restores
Distutils behavior introduced in 2.7.3 and inadvertently dropped in 2.7.4.
- Issue #18071: C extension module builds on OS X could fail with TypeError
...
...
@@ -5467,7 +5467,7 @@ Extension Modules
-
Issue
#
7900
:
The
getgroups
(
2
)
system
call
on
MacOSX
behaves
rather
oddly
compared
to
other
unix
systems
.
In
particular
,
os
.
getgroups
()
does
not
reflect
any
changes
made
using
os
.
setgroups
()
but
basicly
always
not
reflect
any
changes
made
using
os
.
setgroups
()
but
basic
al
ly
always
returns
the
same
information
as
the
id
command
.
os
.
getgroups
()
can
now
return
more
than
16
groups
on
MacOSX
.
...
...
@@ -8076,7 +8076,7 @@ Library
backported
to
help
facilitate
transitions
from
2.7
to
3.1
.
-
Issue
#
1885
:
distutils
:
When
running
sdist
with
--
formats
=
tar
,
gztar
the
tar
file
was
overriden
by
the
gztar
one
.
file
was
overrid
d
en
by
the
gztar
one
.
-
Issue
#
4863
:
distutils
.
mwerkscompiler
has
been
removed
.
...
...
@@ -8365,7 +8365,7 @@ Build
installed.
- Issue #5809: Specifying both --enable-framework and --enable-shared is an
error. Configure now explicity tells you about this.
error. Configure now explicit
l
y tells you about this.
- Issue #3585: Add pkg-config support. It creates a python-2.7.pc file and a
python.pc symlink in the $(LIBDIR)/pkgconfig directory. Patch by Clinton Roy.
...
...
Modules/_bsddb.c
View file @
8d496add
...
...
@@ -3686,7 +3686,7 @@ _DB_has_key(DBObject* self, PyObject* keyobj, PyObject* txnobj)
/*
** DB_BUFFER_SMALL is only used if we use "get".
** We can drop it when we only use "exists",
** when we drop suport for Berkeley DB < 4.6.
** when we drop sup
p
ort for Berkeley DB < 4.6.
*/
if
(
err
==
DB_BUFFER_SMALL
||
err
==
0
)
{
Py_INCREF
(
Py_True
);
...
...
Modules/ld_so_aix.in
View file @
8d496add
...
...
@@ -12,7 +12,7 @@
#
# ARGUMENTS: Same as for "ld". The following arguments are processed
# or supplied by this script (those marked with an asterisk
# can be overriden from command line):
# can be overrid
d
en from command line):
#
# Argument Default value
# (*) -o [OutputFileName] -o shr.o
...
...
@@ -85,7 +85,7 @@ if test ! -n "$*"; then
fi
# Default import file for Python
# Can be overriden by providing a -bI: argument.
# Can be overrid
d
en by providing a -bI: argument.
impfile
=
"./python.exp"
# Parse arguments
...
...
@@ -156,7 +156,7 @@ if test -z "$expfile"; then
fi
# Default entry symbol for Python modules = init[modulename]
# Can be overriden by providing a -e argument.
# Can be overrid
d
en by providing a -e argument.
if
test
-z
"
$entry
"
;
then
entry
=
init
`
echo
$filename
|
sed
"s/module.*//"
`
fi
...
...
Modules/readline.c
View file @
8d496add
...
...
@@ -960,7 +960,7 @@ setup_readline(void)
#ifndef __APPLE__
if
(
!
isatty
(
STDOUT_FILENO
))
{
/* Issue #19884: stdout is no a terminal. Disable meta modifier
/* Issue #19884: stdout is no
t
a terminal. Disable meta modifier
keys to not write the ANSI sequence "\033[1034h" into stdout. On
terminals supporting 8 bit characters like TERM=xterm-256color
(which is now the default Fedora since Fedora 18), the meta key is
...
...
Objects/fileobject.c
View file @
8d496add
...
...
@@ -835,7 +835,7 @@ file_truncate(PyFileObject *f, PyObject *args)
if
(
initialpos
==
-
1
)
goto
onioerror
;
/* Set newsize to current postion if newsizeobj NULL, else to the
/* Set newsize to current pos
i
tion if newsizeobj NULL, else to the
* specified value.
*/
if
(
newsizeobj
!=
NULL
)
{
...
...
Tools/bgen/bgen/bgenVariable.py
View file @
8d496add
...
...
@@ -20,7 +20,7 @@ class Variable:
"""A Variable holds a type, a name, a transfer mode and flags.
Most of its methods call the correponding type method with the
Most of its methods call the corre
s
ponding type method with the
variable name.
"""
...
...
setup.py
View file @
8d496add
...
...
@@ -770,7 +770,7 @@ class PyBuildExt(build_ext):
# In every directory on the search path search for a dynamic
# library and then a static library, instead of first looking
# for dynamic libraries on the entire path.
# This way a staticly linked custom readline gets picked up
# This way a static
al
ly linked custom readline gets picked up
# before the (possibly broken) dynamic library in /usr/lib.
readline_extra_link_args = ('-Wl,-search_paths_first',)
else:
...
...
@@ -1767,7 +1767,7 @@ class PyBuildExt(build_ext):
# --with-tcltk-libs="-L/path/to/tcllibs -ltclm.n \
# -L/path/to/tklibs -ltkm.n"
#
# These values can also be specified or overriden via make:
# These values can also be specified or overrid
d
en via make:
# make TCLTK_INCLUDES="..." TCLTK_LIBS="..."
#
# This can be useful for building and testing tkinter with multiple
...
...
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