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
f5469cff
Commit
f5469cff
authored
Aug 17, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#18705: fix a number of typos. Patch by Févry Thibault.
parent
10b51309
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
34 additions
and
33 deletions
+34
-33
Lib/Cookie.py
Lib/Cookie.py
+1
-1
Lib/_osx_support.py
Lib/_osx_support.py
+4
-4
Lib/_strptime.py
Lib/_strptime.py
+1
-1
Lib/aifc.py
Lib/aifc.py
+1
-1
Lib/calendar.py
Lib/calendar.py
+1
-1
Lib/compiler/pyassem.py
Lib/compiler/pyassem.py
+1
-1
Lib/difflib.py
Lib/difflib.py
+3
-3
Lib/doctest.py
Lib/doctest.py
+2
-2
Lib/genericpath.py
Lib/genericpath.py
+1
-1
Lib/inspect.py
Lib/inspect.py
+1
-1
Lib/lib-tk/turtle.py
Lib/lib-tk/turtle.py
+4
-4
Lib/modulefinder.py
Lib/modulefinder.py
+1
-1
Lib/multiprocessing/forking.py
Lib/multiprocessing/forking.py
+1
-1
Lib/optparse.py
Lib/optparse.py
+1
-1
Lib/pdb.py
Lib/pdb.py
+1
-1
Lib/pickletools.py
Lib/pickletools.py
+2
-2
Lib/platform.py
Lib/platform.py
+3
-3
Lib/poplib.py
Lib/poplib.py
+1
-1
Lib/rlcompleter.py
Lib/rlcompleter.py
+1
-1
Lib/subprocess.py
Lib/subprocess.py
+1
-1
Lib/tarfile.py
Lib/tarfile.py
+1
-1
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Lib/Cookie.py
View file @
f5469cff
...
@@ -238,7 +238,7 @@ class CookieError(Exception):
...
@@ -238,7 +238,7 @@ class CookieError(Exception):
# a two-way quoting algorithm. Any non-text character is translated
# a two-way quoting algorithm. Any non-text character is translated
# into a 4 character sequence: a forward-slash followed by the
# into a 4 character sequence: a forward-slash followed by the
# three-digit octal equivalent of the character. Any '\' or '"' is
# three-digit octal equivalent of the character. Any '\' or '"' is
# quoted with a prece
e
ding '\' slash.
# quoted with a preceding '\' slash.
#
#
# These are taken from RFC2068 and RFC2109.
# These are taken from RFC2068 and RFC2109.
# _LegalChars is the list of chars which don't require "'s
# _LegalChars is the list of chars which don't require "'s
...
...
Lib/_osx_support.py
View file @
f5469cff
...
@@ -152,7 +152,7 @@ def _find_appropriate_compiler(_config_vars):
...
@@ -152,7 +152,7 @@ def _find_appropriate_compiler(_config_vars):
# are not installed.
# are not installed.
#
#
# Futhermore, the compiler that can be used varies between
# Futhermore, the compiler that can be used varies between
# Xcode releases. Upto Xcode 4 it was possible to use '
gcc
-
4.2
'
# Xcode releases. Up
to Xcode 4 it was possible to use '
gcc
-
4.2
'
# as the compiler, after that '
clang
' should be used because
# as the compiler, after that '
clang
' should be used because
# gcc-4.2 is either not present, or a copy of '
llvm
-
gcc
' that
# gcc-4.2 is either not present, or a copy of '
llvm
-
gcc
' that
# miscompiles Python.
# miscompiles Python.
...
@@ -192,7 +192,7 @@ def _find_appropriate_compiler(_config_vars):
...
@@ -192,7 +192,7 @@ def _find_appropriate_compiler(_config_vars):
if
cc
!=
oldcc
:
if
cc
!=
oldcc
:
# Found a replacement compiler.
# Found a replacement compiler.
# Modify config vars using new compiler, if not already explictly
# Modify config vars using new compiler, if not already explic
i
tly
# overriden by an env variable, preserving additional arguments.
# overriden by an env variable, preserving additional arguments.
for
cv
in
_COMPILER_CONFIG_VARS
:
for
cv
in
_COMPILER_CONFIG_VARS
:
if
cv
in
_config_vars
and
cv
not
in
os
.
environ
:
if
cv
in
_config_vars
and
cv
not
in
os
.
environ
:
...
@@ -274,7 +274,7 @@ def _check_for_unavailable_sdk(_config_vars):
...
@@ -274,7 +274,7 @@ def _check_for_unavailable_sdk(_config_vars):
# compile an extension using an SDK that is not present
# compile an extension using an SDK that is not present
# on the current machine it is better to not use an SDK
# on the current machine it is better to not use an SDK
# than to fail. This is particularly important with
# than to fail. This is particularly important with
# the standalon
g
Command Line Tools alternative to a
# the standalon
e
Command Line Tools alternative to a
# full-blown Xcode install since the CLT packages do not
# full-blown Xcode install since the CLT packages do not
# provide SDKs. If the SDK is not present, it is assumed
# provide SDKs. If the SDK is not present, it is assumed
# that the header files and dev libs have been installed
# that the header files and dev libs have been installed
...
@@ -378,7 +378,7 @@ def customize_config_vars(_config_vars):
...
@@ -378,7 +378,7 @@ def customize_config_vars(_config_vars):
compilers are present, i.e. when installing pure
compilers are present, i.e. when installing pure
Python dists. Customization of compiler paths
Python dists. Customization of compiler paths
and detection of unavailable archs is deferred
and detection of unavailable archs is deferred
until the first exten
t
ion module build is
until the first exten
s
ion module build is
requested (in distutils.sysconfig.customize_compiler).
requested (in distutils.sysconfig.customize_compiler).
Currently called from distutils.sysconfig
Currently called from distutils.sysconfig
...
...
Lib/_strptime.py
View file @
f5469cff
...
@@ -222,7 +222,7 @@ class TimeRE(dict):
...
@@ -222,7 +222,7 @@ class TimeRE(dict):
"""Convert a list to a regex string for matching a directive.
"""Convert a list to a regex string for matching a directive.
Want possible matching values to be from longest to shortest. This
Want possible matching values to be from longest to shortest. This
prevents the possibility of a match occuring for a value that also
prevents the possibility of a match occur
r
ing for a value that also
a substring of a larger value that should have matched (e.g., 'abc'
a substring of a larger value that should have matched (e.g., 'abc'
matching when 'abcdef' should have been the match).
matching when 'abcdef' should have been the match).
...
...
Lib/aifc.py
View file @
f5469cff
...
@@ -123,7 +123,7 @@ It is best to first set all parameters, perhaps possibly the
...
@@ -123,7 +123,7 @@ It is best to first set all parameters, perhaps possibly the
compression type, and then write audio frames using writeframesraw.
compression type, and then write audio frames using writeframesraw.
When all frames have been written, either call writeframes('') or
When all frames have been written, either call writeframes('') or
close() to patch up the sizes in the header.
close() to patch up the sizes in the header.
Marks can be added anytime. If there are any marks, y
p
u must call
Marks can be added anytime. If there are any marks, y
o
u must call
close() after all frames have been written.
close() after all frames have been written.
The close() method is called automatically when the class instance
The close() method is called automatically when the class instance
is destroyed.
is destroyed.
...
...
Lib/calendar.py
View file @
f5469cff
...
@@ -220,7 +220,7 @@ class Calendar(object):
...
@@ -220,7 +220,7 @@ class Calendar(object):
def
yeardatescalendar
(
self
,
year
,
width
=
3
):
def
yeardatescalendar
(
self
,
year
,
width
=
3
):
"""
"""
Return the data for the specified year ready for formatting. The return
Return the data for the specified year ready for formatting. The return
value is a list of month rows. Each month row contains upto width months.
value is a list of month rows. Each month row contains up
to width months.
Each month contains between 4 and 6 weeks and each week contains 1-7
Each month contains between 4 and 6 weeks and each week contains 1-7
days. Days are datetime.date objects.
days. Days are datetime.date objects.
"""
"""
...
...
Lib/compiler/pyassem.py
View file @
f5469cff
...
@@ -125,7 +125,7 @@ def order_blocks(start_block, exit_block):
...
@@ -125,7 +125,7 @@ def order_blocks(start_block, exit_block):
# Make sure every block appears in dominators, even if no
# Make sure every block appears in dominators, even if no
# other block must precede it.
# other block must precede it.
dominators
.
setdefault
(
b
,
set
())
dominators
.
setdefault
(
b
,
set
())
# prece
e
ding blocks dominate following blocks
# preceding blocks dominate following blocks
for
c
in
b
.
get_followers
():
for
c
in
b
.
get_followers
():
while
1
:
while
1
:
dominators
.
setdefault
(
c
,
set
()).
add
(
b
)
dominators
.
setdefault
(
c
,
set
()).
add
(
b
)
...
...
Lib/difflib.py
View file @
f5469cff
...
@@ -586,7 +586,7 @@ class SequenceMatcher:
...
@@ -586,7 +586,7 @@ class SequenceMatcher:
def
get_grouped_opcodes
(
self
,
n
=
3
):
def
get_grouped_opcodes
(
self
,
n
=
3
):
""" Isolate change clusters by eliminating ranges with no changes.
""" Isolate change clusters by eliminating ranges with no changes.
Return a generator of groups with upto n lines of context.
Return a generator of groups with up
to n lines of context.
Each group is in the same format as returned by get_opcodes().
Each group is in the same format as returned by get_opcodes().
>>> from pprint import pprint
>>> from pprint import pprint
...
@@ -1361,7 +1361,7 @@ def _mdiff(fromlines, tolines, context=None, linejunk=None,
...
@@ -1361,7 +1361,7 @@ def _mdiff(fromlines, tolines, context=None, linejunk=None,
linejunk -- passed on to ndiff (see ndiff documentation)
linejunk -- passed on to ndiff (see ndiff documentation)
charjunk -- passed on to ndiff (see ndiff documentation)
charjunk -- passed on to ndiff (see ndiff documentation)
This function returns an i
n
terator which returns a tuple:
This function returns an iterator which returns a tuple:
(from line tuple, to line tuple, boolean flag)
(from line tuple, to line tuple, boolean flag)
from/to line tuple -- (line num, line text)
from/to line tuple -- (line num, line text)
...
@@ -1963,7 +1963,7 @@ class HtmlDiff(object):
...
@@ -1963,7 +1963,7 @@ class HtmlDiff(object):
self
.
_make_prefix
()
self
.
_make_prefix
()
# change tabs to spaces before it gets more difficult after we insert
# change tabs to spaces before it gets more difficult after we insert
# mark
k
up
# markup
fromlines
,
tolines
=
self
.
_tab_newline_replace
(
fromlines
,
tolines
)
fromlines
,
tolines
=
self
.
_tab_newline_replace
(
fromlines
,
tolines
)
# create diffs iterator which generates side by side from/to data
# create diffs iterator which generates side by side from/to data
...
...
Lib/doctest.py
View file @
f5469cff
...
@@ -424,7 +424,7 @@ class Example:
...
@@ -424,7 +424,7 @@ class Example:
zero-based, with respect to the beginning of the DocTest.
zero-based, with respect to the beginning of the DocTest.
- indent: The example's indentation in the DocTest string.
- indent: The example's indentation in the DocTest string.
I.e., the number of space characters that prece
ed
the
I.e., the number of space characters that prece
de
the
example's first prompt.
example's first prompt.
- options: A dictionary mapping from option flags to True or
- options: A dictionary mapping from option flags to True or
...
@@ -895,7 +895,7 @@ class DocTestFinder:
...
@@ -895,7 +895,7 @@ class DocTestFinder:
if '__name__' not in globs:
if '__name__' not in globs:
globs['__name__'] = '__main__' # provide a default module name
globs['__name__'] = '__main__' # provide a default module name
# Recursively expore `obj`, extracting DocTests.
# Recursively exp
l
ore `obj`, extracting DocTests.
tests = []
tests = []
self._find(tests, obj, name, module, source_lines, globs, {})
self._find(tests, obj, name, module, source_lines, globs, {})
# Sort the tests by alpha order of names, for consistency in
# Sort the tests by alpha order of names, for consistency in
...
...
Lib/genericpath.py
View file @
f5469cff
...
@@ -22,7 +22,7 @@ def exists(path):
...
@@ -22,7 +22,7 @@ def exists(path):
# This follows symbolic links, so both islink() and isdir() can be true
# This follows symbolic links, so both islink() and isdir() can be true
# for the same path on
o
systems that support symlinks
# for the same path on systems that support symlinks
def
isfile
(
path
):
def
isfile
(
path
):
"""Test whether a path is a regular file"""
"""Test whether a path is a regular file"""
try
:
try
:
...
...
Lib/inspect.py
View file @
f5469cff
...
@@ -165,7 +165,7 @@ def isgenerator(object):
...
@@ -165,7 +165,7 @@ def isgenerator(object):
"""Return true if the object is a generator.
"""Return true if the object is a generator.
Generator objects provide these attributes:
Generator objects provide these attributes:
__iter__ defined to support i
n
teration over container
__iter__ defined to support iteration over container
close raises a new GeneratorExit exception inside the
close raises a new GeneratorExit exception inside the
generator to terminate the iteration
generator to terminate the iteration
gi_code code object
gi_code code object
...
...
Lib/lib-tk/turtle.py
View file @
f5469cff
...
@@ -1233,7 +1233,7 @@ class TurtleScreen(TurtleScreenBase):
...
@@ -1233,7 +1233,7 @@ class TurtleScreen(TurtleScreenBase):
self
.
_delayvalue
=
int
(
delay
)
self
.
_delayvalue
=
int
(
delay
)
def
_incrementudc
(
self
):
def
_incrementudc
(
self
):
"""Increment up
a
date counter."""
"""Increment update counter."""
if
not
TurtleScreen
.
_RUNNING
:
if
not
TurtleScreen
.
_RUNNING
:
TurtleScreen
.
_RUNNNING
=
True
TurtleScreen
.
_RUNNNING
=
True
raise
Terminator
raise
Terminator
...
@@ -2439,7 +2439,7 @@ class RawTurtle(TPen, TNavigator):
...
@@ -2439,7 +2439,7 @@ class RawTurtle(TPen, TNavigator):
self
.
screen
=
TurtleScreen
(
canvas
)
self
.
screen
=
TurtleScreen
(
canvas
)
RawTurtle
.
screens
.
append
(
self
.
screen
)
RawTurtle
.
screens
.
append
(
self
.
screen
)
else
:
else
:
raise
TurtleGraphicsError
(
"bad cavas argument %s"
%
canvas
)
raise
TurtleGraphicsError
(
"bad ca
n
vas argument %s"
%
canvas
)
screen
=
self
.
screen
screen
=
self
.
screen
TNavigator
.
__init__
(
self
,
screen
.
mode
())
TNavigator
.
__init__
(
self
,
screen
.
mode
())
...
@@ -2684,7 +2684,7 @@ class RawTurtle(TPen, TNavigator):
...
@@ -2684,7 +2684,7 @@ class RawTurtle(TPen, TNavigator):
def
shapesize
(
self
,
stretch_wid
=
None
,
stretch_len
=
None
,
outline
=
None
):
def
shapesize
(
self
,
stretch_wid
=
None
,
stretch_len
=
None
,
outline
=
None
):
"""Set/return turtle's stretchfactors/outline. Set resizemode to "user".
"""Set/return turtle's stretchfactors/outline. Set resizemode to "user".
Opti
n
onal arguments:
Optional arguments:
stretch_wid : positive number
stretch_wid : positive number
stretch_len : positive number
stretch_len : positive number
outline : positive number
outline : positive number
...
@@ -2975,7 +2975,7 @@ class RawTurtle(TPen, TNavigator):
...
@@ -2975,7 +2975,7 @@ class RawTurtle(TPen, TNavigator):
def
_goto
(
self
,
end
):
def
_goto
(
self
,
end
):
"""Move the pen to the point end, thereby drawing a line
"""Move the pen to the point end, thereby drawing a line
if pen is down. All other method
e
s for turtle movement depend
if pen is down. All other methods for turtle movement depend
on this one.
on this one.
"""
"""
## Version mit undo-stuff
## Version mit undo-stuff
...
...
Lib/modulefinder.py
View file @
f5469cff
...
@@ -516,7 +516,7 @@ class ModuleFinder:
...
@@ -516,7 +516,7 @@ class ModuleFinder:
# Print modules that may be missing, but then again, maybe not...
# Print modules that may be missing, but then again, maybe not...
if
maybe
:
if
maybe
:
print
print
print
"Submodules tha
y
appear to be missing, but could also be"
,
print
"Submodules tha
t
appear to be missing, but could also be"
,
print
"global names in the parent package:"
print
"global names in the parent package:"
for
name
in
maybe
:
for
name
in
maybe
:
mods
=
self
.
badmodules
[
name
].
keys
()
mods
=
self
.
badmodules
[
name
].
keys
()
...
...
Lib/multiprocessing/forking.py
View file @
f5469cff
...
@@ -367,7 +367,7 @@ else:
...
@@ -367,7 +367,7 @@ else:
def
main
():
def
main
():
'''
'''
Run code specifed by data received over pipe
Run code specif
i
ed by data received over pipe
'''
'''
assert
is_forking
(
sys
.
argv
)
assert
is_forking
(
sys
.
argv
)
...
...
Lib/optparse.py
View file @
f5469cff
...
@@ -1471,7 +1471,7 @@ class OptionParser (OptionContainer):
...
@@ -1471,7 +1471,7 @@ class OptionParser (OptionContainer):
"""_match_long_opt(opt : string) -> string
"""_match_long_opt(opt : string) -> string
Determine which long option string 'opt' matches, ie. which one
Determine which long option string 'opt' matches, ie. which one
it is an unambiguous abbrevation for. Raises BadOptionError if
it is an unambiguous abbrev
i
ation for. Raises BadOptionError if
'opt' doesn't unambiguously match any long option string.
'opt' doesn't unambiguously match any long option string.
"""
"""
return
_match_abbrev
(
opt
,
self
.
_long_opt
)
return
_match_abbrev
(
opt
,
self
.
_long_opt
)
...
...
Lib/pdb.py
View file @
f5469cff
...
@@ -1095,7 +1095,7 @@ command with a 'global' command, e.g.:
...
@@ -1095,7 +1095,7 @@ command with a 'global' command, e.g.:
def
help_run
(
self
):
def
help_run
(
self
):
print
"""run [args...]
print
"""run [args...]
Restart the debugged python program. If a string is supplied, it is
Restart the debugged python program. If a string is supplied, it is
split
ted
with "shlex" and the result is used as the new sys.argv.
split with "shlex" and the result is used as the new sys.argv.
History, breakpoints, actions and debugger options are preserved.
History, breakpoints, actions and debugger options are preserved.
"restart" is an alias for "run"."""
"restart" is an alias for "run"."""
...
...
Lib/pickletools.py
View file @
f5469cff
...
@@ -804,7 +804,7 @@ stackslice = StackObject(
...
@@ -804,7 +804,7 @@ stackslice = StackObject(
obtype
=
StackObject
,
obtype
=
StackObject
,
doc
=
"""An object representing a contiguous slice of the stack.
doc
=
"""An object representing a contiguous slice of the stack.
This is used in conjuction with markobject, to represent all
This is used in conju
n
ction with markobject, to represent all
of the stack following the topmost markobject. For example,
of the stack following the topmost markobject. For example,
the POP_MARK opcode changes the stack from
the POP_MARK opcode changes the stack from
...
@@ -1929,7 +1929,7 @@ def dis(pickle, out=None, memo=None, indentlevel=4):
...
@@ -1929,7 +1929,7 @@ def dis(pickle, out=None, memo=None, indentlevel=4):
stack
=
[]
# crude emulation of unpickler stack
stack
=
[]
# crude emulation of unpickler stack
if
memo
is
None
:
if
memo
is
None
:
memo
=
{}
# crude emulation of unpicker memo
memo
=
{}
# crude emulation of unpick
l
er memo
maxproto
=
-
1
# max protocol number seen
maxproto
=
-
1
# max protocol number seen
markstack
=
[]
# bytecode positions of MARK opcodes
markstack
=
[]
# bytecode positions of MARK opcodes
indentchunk
=
' '
*
indentlevel
indentchunk
=
' '
*
indentlevel
...
...
Lib/platform.py
View file @
f5469cff
...
@@ -228,7 +228,7 @@ def _dist_try_harder(distname,version,id):
...
@@ -228,7 +228,7 @@ def _dist_try_harder(distname,version,id):
return
'OpenLinux'
,
pkg
[
1
],
id
return
'OpenLinux'
,
pkg
[
1
],
id
if
os
.
path
.
isdir
(
'/usr/lib/setup'
):
if
os
.
path
.
isdir
(
'/usr/lib/setup'
):
# Check for slackware verson tag file (thanks to Greg Andruk)
# Check for slackware vers
i
on tag file (thanks to Greg Andruk)
verfiles
=
os
.
listdir
(
'/usr/lib/setup'
)
verfiles
=
os
.
listdir
(
'/usr/lib/setup'
)
for
n
in
range
(
len
(
verfiles
)
-
1
,
-
1
,
-
1
):
for
n
in
range
(
len
(
verfiles
)
-
1
,
-
1
,
-
1
):
if
verfiles
[
n
][:
14
]
!=
'slack-version-'
:
if
verfiles
[
n
][:
14
]
!=
'slack-version-'
:
...
@@ -280,7 +280,7 @@ def _parse_release_file(firstline):
...
@@ -280,7 +280,7 @@ def _parse_release_file(firstline):
if m is not None:
if m is not None:
return tuple(m.groups())
return tuple(m.groups())
# Unkown format... take the first two words
# Unk
n
own format... take the first two words
l = string.split(string.strip(firstline))
l = string.split(string.strip(firstline))
if l:
if l:
version = l[0]
version = l[0]
...
@@ -800,7 +800,7 @@ def mac_ver(release='',versioninfo=('','',''),machine=''):
...
@@ -800,7 +800,7 @@ def mac_ver(release='',versioninfo=('','',''),machine=''):
versioninfo, machine) with versioninfo being a tuple (version,
versioninfo, machine) with versioninfo being a tuple (version,
dev_stage, non_release_version).
dev_stage, non_release_version).
Entries which cannot be determined are set to the paramter values
Entries which cannot be determined are set to the param
e
ter values
which default to ''. All tuple entries are strings.
which default to ''. All tuple entries are strings.
"""
"""
...
...
Lib/poplib.py
View file @
f5469cff
...
@@ -321,7 +321,7 @@ else:
...
@@ -321,7 +321,7 @@ else:
hostname - the hostname of the pop3 over ssl server
hostname - the hostname of the pop3 over ssl server
port - port number
port - port number
keyfile - PEM formatted file that co
u
ntains your private key
keyfile - PEM formatted file that contains your private key
certfile - PEM formatted certificate chain file
certfile - PEM formatted certificate chain file
See the methods of the parent class POP3 for more documentation.
See the methods of the parent class POP3 for more documentation.
...
...
Lib/rlcompleter.py
View file @
f5469cff
...
@@ -116,7 +116,7 @@ class Completer:
...
@@ -116,7 +116,7 @@ class Completer:
"""Compute matches when text contains a dot.
"""Compute matches when text contains a dot.
Assuming the text is of the form NAME.NAME....[NAME], and is
Assuming the text is of the form NAME.NAME....[NAME], and is
evalua
ta
ble in self.namespace, it will be evaluated and its attributes
evaluable in self.namespace, it will be evaluated and its attributes
(as revealed by dir()) are used as possible completions. (For class
(as revealed by dir()) are used as possible completions. (For class
instances, class members are also considered.)
instances, class members are also considered.)
...
...
Lib/subprocess.py
View file @
f5469cff
...
@@ -143,7 +143,7 @@ Exceptions raised in the child process, before the new program has
...
@@ -143,7 +143,7 @@ Exceptions raised in the child process, before the new program has
started to execute, will be re-raised in the parent. Additionally,
started to execute, will be re-raised in the parent. Additionally,
the exception object will have one extra attribute called
the exception object will have one extra attribute called
'child_traceback', which is a string containing traceback information
'child_traceback', which is a string containing traceback information
from the childs point of view.
from the child
'
s point of view.
The most common exception raised is OSError. This occurs, for
The most common exception raised is OSError. This occurs, for
example, when trying to execute a non-existent file. Applications
example, when trying to execute a non-existent file. Applications
...
...
Lib/tarfile.py
View file @
f5469cff
...
@@ -330,7 +330,7 @@ class ExtractError(TarError):
...
@@ -330,7 +330,7 @@ class ExtractError(TarError):
"""General exception for extract errors."""
"""General exception for extract errors."""
pass
pass
class
ReadError
(
TarError
):
class
ReadError
(
TarError
):
"""Exception for unreadble tar archives."""
"""Exception for unread
a
ble tar archives."""
pass
pass
class
CompressionError
(
TarError
):
class
CompressionError
(
TarError
):
"""Exception for unavailable compression methods."""
"""Exception for unavailable compression methods."""
...
...
Misc/ACKS
View file @
f5469cff
...
@@ -1015,6 +1015,7 @@ Mikhail Terekhov
...
@@ -1015,6 +1015,7 @@ Mikhail Terekhov
Victor Terrón
Victor Terrón
Richard M. Tew
Richard M. Tew
Tobias Thelen
Tobias Thelen
Févry Thibault
Lowe Thiderman
Lowe Thiderman
Nicolas M. Thiéry
Nicolas M. Thiéry
James Thomas
James Thomas
...
...
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