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
fbdda646
Commit
fbdda646
authored
Aug 26, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#18803: fix more typos. Patch by Févry Thibault.
parent
3e40f203
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
20 additions
and
20 deletions
+20
-20
Mac/BuildScript/build-installer.py
Mac/BuildScript/build-installer.py
+2
-2
Modules/unicodedata.c
Modules/unicodedata.c
+1
-1
PCbuild/vs9to10.py
PCbuild/vs9to10.py
+1
-1
Parser/asdl_c.py
Parser/asdl_c.py
+1
-1
Tools/freeze/checkextensions_win32.py
Tools/freeze/checkextensions_win32.py
+2
-2
Tools/freeze/makefreeze.py
Tools/freeze/makefreeze.py
+1
-1
Tools/gdb/libpython.py
Tools/gdb/libpython.py
+1
-1
Tools/i18n/msgfmt.py
Tools/i18n/msgfmt.py
+1
-1
Tools/msi/msilib.py
Tools/msi/msilib.py
+1
-1
Tools/pybench/CommandLine.py
Tools/pybench/CommandLine.py
+1
-1
Tools/pybench/systimes.py
Tools/pybench/systimes.py
+1
-1
Tools/pynche/DetailsViewer.py
Tools/pynche/DetailsViewer.py
+1
-1
Tools/scripts/fixnotice.py
Tools/scripts/fixnotice.py
+1
-1
Tools/scripts/ifdef.py
Tools/scripts/ifdef.py
+2
-2
Tools/scripts/pathfix.py
Tools/scripts/pathfix.py
+1
-1
Tools/stringbench/stringbench.py
Tools/stringbench/stringbench.py
+1
-1
Tools/unicode/makeunicodedata.py
Tools/unicode/makeunicodedata.py
+1
-1
No files found.
Mac/BuildScript/build-installer.py
View file @
fbdda646
...
...
@@ -108,7 +108,7 @@ DEPSRC = os.path.expanduser('~/Universal/other-sources')
### There are some issues with the SDK selection below here,
### The resulting binary doesn't work on all platforms that
### it should. Always default to the 10.4u SDK until that
### isue is resolved.
### is
s
ue is resolved.
###
##if int(os.uname()[2].split('.')[0]) == 8:
## # Explicitly use the 10.4u (universal) SDK when
...
...
@@ -1015,7 +1015,7 @@ def buildPython():
os
.
chdir
(
curdir
)
if
PYTHON_3
:
# Remove the 'Current' link, that way we don't accidently mess
# Remove the 'Current' link, that way we don't accident
al
ly mess
# with an already installed version of python 2
os
.
unlink
(
os
.
path
.
join
(
rootDir
,
'Library'
,
'Frameworks'
,
'Python.framework'
,
'Versions'
,
'Current'
))
...
...
Modules/unicodedata.c
View file @
fbdda646
...
...
@@ -507,7 +507,7 @@ nfd_nfkd(PyObject *self, PyObject *input, int k)
stackptr
=
0
;
isize
=
PyUnicode_GET_LENGTH
(
input
);
/* Overallocate atmost 10 characters. */
/* Overallocate at
most 10 characters. */
space
=
(
isize
>
10
?
10
:
isize
)
+
isize
;
osize
=
space
;
output
=
PyMem_Malloc
(
space
*
sizeof
(
Py_UCS4
));
...
...
PCbuild/vs9to10.py
View file @
fbdda646
#Run this file after automatic conver
t
sion of the VisualStudio 2008 solution by VisualStudio 2010.
#Run this file after automatic conversion of the VisualStudio 2008 solution by VisualStudio 2010.
#This can be done whenever the 2008 solution changes.
#It will make the necessary cleanup and updates to the vcxproj files
#the .props files need to be maintained by hand if the .vsprops files change
...
...
Parser/asdl_c.py
View file @
fbdda646
...
...
@@ -1010,7 +1010,7 @@ def has_sequence(types, doing_specialization):
class
StaticVisitor
(
PickleVisitor
):
CODE
=
'''Very simple, always emit this static code. Overide CODE'''
CODE
=
'''Very simple, always emit this static code. Over
r
ide CODE'''
def
visit
(
self
,
object
):
self
.
emit
(
self
.
CODE
,
0
,
reflow
=
False
)
...
...
Tools/freeze/checkextensions_win32.py
View file @
fbdda646
...
...
@@ -3,7 +3,7 @@
Under Windows it is unlikely the .obj files are of use, as special compiler options
are needed (primarily to toggle the behavior of "public" symbols.
I dont consider it worth parsing the MSVC makefiles for compiler options. Even if
I don
'
t consider it worth parsing the MSVC makefiles for compiler options. Even if
we get it just right, a specific freeze application may have specific compiler
options anyway (eg, to enable or disable specific functionality)
...
...
@@ -14,7 +14,7 @@ So my basic strategy is:
your own).
* This description can include:
- The MSVC .dsp file for the extension. The .c source file names
are extraced from there.
are extrac
t
ed from there.
- Specific compiler/linker options
- Flag to indicate if Unicode compilation is expected.
...
...
Tools/freeze/makefreeze.py
View file @
fbdda646
...
...
@@ -61,7 +61,7 @@ def makefreeze(base, dict, debug=0, entry_point=None, fail_import=()):
outfp
.
write
(
'
\
t
{"%s", M_%s, %d},
\
n
'
%
(
mod
,
mangled
,
size
))
outfp
.
write
(
'
\
n
'
)
# The following modules have a NULL code pointer, indicating
# that the
p
rozen program should not search for them on the host
# that the
f
rozen program should not search for them on the host
# system. Importing them will *always* raise an ImportError.
# The zero value size is never used.
for
mod
in
fail_import
:
...
...
Tools/gdb/libpython.py
View file @
fbdda646
...
...
@@ -632,7 +632,7 @@ class PyDictObjectPtr(PyObjectPtr):
def
iteritems
(
self
):
'''
Yields a sequence of (PyObjectPtr key, PyObjectPtr value) pairs,
anal
a
gous to dict.iteritems()
anal
o
gous to dict.iteritems()
'''
keys
=
self
.
field
(
'ma_keys'
)
values
=
self
.
field
(
'ma_values'
)
...
...
Tools/i18n/msgfmt.py
View file @
fbdda646
...
...
@@ -154,7 +154,7 @@ def make(filename, outfile):
# This is a message with plural forms
elif
l
.
startswith
(
'msgid_plural'
):
if
section
!=
ID
:
print
(
'msgid_plural not prece
e
ded by msgid on %s:%d'
%
(
infile
,
lno
),
print
(
'msgid_plural not preceded by msgid on %s:%d'
%
(
infile
,
lno
),
file
=
sys
.
stderr
)
sys
.
exit
(
1
)
l
=
l
[
12
:]
...
...
Tools/msi/msilib.py
View file @
fbdda646
...
...
@@ -305,7 +305,7 @@ def init_database(name, schema,
t
.
create
(
db
)
# Fill the validation table
add_data
(
db
,
"_Validation"
,
schema
.
_Validation_records
)
# Initialize the summary information, allowing atmost 20 properties
# Initialize the summary information, allowing at
most 20 properties
si
=
db
.
GetSummaryInformation
(
20
)
si
.
SetProperty
(
PID_TITLE
,
"Installation Database"
)
si
.
SetProperty
(
PID_SUBJECT
,
ProductName
)
...
...
Tools/pybench/CommandLine.py
View file @
fbdda646
...
...
@@ -462,7 +462,7 @@ class Application:
handler = getattr(self, handlername)
except AttributeError:
if value == '':
# count the number of occur
a
nces
# count the number of occur
re
nces
if optionname in values:
values[optionname] = values[optionname] + 1
else:
...
...
Tools/pybench/systimes.py
View file @
fbdda646
...
...
@@ -5,7 +5,7 @@
This module implements various different strategies for measuring
performance timings. It tries to choose the best available method
based on the platform
a
and available tools.
based on the platform and available tools.
On Windows, it is recommended to have the Mark Hammond win32
package installed. Alternatively, the Thomas Heller ctypes
...
...
Tools/pynche/DetailsViewer.py
View file @
fbdda646
...
...
@@ -26,7 +26,7 @@ option menu:
other side. Thus if red were at 238 and 25 were added to it, red
would have the value 7.
Preseve Distance
Prese
r
ve Distance
When the increment or decrement would send any of the tied variations
out of bounds, all tied variations are wrapped as one, so as to
preserve the distance between them. Thus if green and blue were tied,
...
...
Tools/scripts/fixnotice.py
View file @
fbdda646
...
...
@@ -2,7 +2,7 @@
"""(Ostensibly) fix copyright notices in files.
Actually, this sript will simply replace a block of text in a file from one
Actually, this s
c
ript will simply replace a block of text in a file from one
string to another. It will only do this once though, i.e. not globally
throughout the file. It writes a backup file and then does an os.rename()
dance for atomicity.
...
...
Tools/scripts/ifdef.py
View file @
fbdda646
...
...
@@ -9,11 +9,11 @@
# options. On standard output it writes a copy of the input file(s)
# minus those code sections that are suppressed by the selected
# combination of defined/undefined symbols. The #if(n)def/#else/#else
# lines themsel
f
s (if the #if(n)def tests for one of the mentioned
# lines themsel
ve
s (if the #if(n)def tests for one of the mentioned
# names) are removed as well.
# Features: Arbitrary nesting of recognized and unrecognized
# preprocesor statements works correctly. Unrecognized #if* commands
# preproces
s
or statements works correctly. Unrecognized #if* commands
# are left in place, so it will never remove too much, only too
# little. It does accept whitespace around the '#' character.
...
...
Tools/scripts/pathfix.py
View file @
fbdda646
...
...
@@ -151,7 +151,7 @@ def fix(filename):
except
os
.
error
as
msg
:
err
(
'%s: reset of timestamp failed (%r)
\
n
'
%
(
filename
,
msg
))
return
1
# Return succes
# Return succes
s
return
0
def
fixline
(
line
):
...
...
Tools/stringbench/stringbench.py
View file @
fbdda646
...
...
@@ -1294,7 +1294,7 @@ def _get_big_s(STR):
raise
AssertionError
# The older replace implementation counted all matches in
# the string even when it only neeed to make one replacement.
# the string even when it only nee
d
ed to make one replacement.
@
bench
(
'("A" + ("Z"*128*1024)).replace("A", "BB", 1)'
,
'quick replace single character match'
,
10
)
def
quick_replace_single_match
(
STR
):
...
...
Tools/unicode/makeunicodedata.py
View file @
fbdda646
...
...
@@ -966,7 +966,7 @@ class UnicodeData:
assert
pua_index
-
NAME_ALIASES_START
==
len
(
self
.
aliases
)
self
.
named_sequences
=
[]
# store named seqences in the PUA 1, in range U+F0100..,
# store named seq
u
ences in the PUA 1, in range U+F0100..,
# in order to take advantage of the compression and lookup
# algorithms used for the other characters.
...
...
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