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
b19130b3
Commit
b19130b3
authored
Jun 28, 2000
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typos fixed by Rob Hooft
parent
a1852a39
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
41 additions
and
41 deletions
+41
-41
Demo/pdist/rcslib.py
Demo/pdist/rcslib.py
+1
-1
Demo/sgi/video/Vcopy.py
Demo/sgi/video/Vcopy.py
+1
-1
Demo/sgi/video/Vtime.py
Demo/sgi/video/Vtime.py
+1
-1
Lib/Queue.py
Lib/Queue.py
+1
-1
Lib/binhex.py
Lib/binhex.py
+2
-2
Lib/calendar.py
Lib/calendar.py
+1
-1
Lib/distutils/cmd.py
Lib/distutils/cmd.py
+1
-1
Lib/distutils/command/build_ext.py
Lib/distutils/command/build_ext.py
+2
-2
Lib/distutils/util.py
Lib/distutils/util.py
+1
-1
Lib/distutils/version.py
Lib/distutils/version.py
+1
-1
Lib/dos-8x3/posixpat.py
Lib/dos-8x3/posixpat.py
+2
-2
Lib/dos-8x3/queue.py
Lib/dos-8x3/queue.py
+1
-1
Lib/dos-8x3/test_win.py
Lib/dos-8x3/test_win.py
+1
-1
Lib/fnmatch.py
Lib/fnmatch.py
+1
-1
Lib/locale.py
Lib/locale.py
+2
-2
Lib/plat-irix5/CL_old.py
Lib/plat-irix5/CL_old.py
+1
-1
Lib/plat-irix5/flp.py
Lib/plat-irix5/flp.py
+2
-2
Lib/plat-irix5/panel.py
Lib/plat-irix5/panel.py
+2
-2
Lib/plat-irix6/flp.py
Lib/plat-irix6/flp.py
+2
-2
Lib/plat-irix6/panel.py
Lib/plat-irix6/panel.py
+2
-2
Lib/posixpath.py
Lib/posixpath.py
+2
-2
Lib/sgmllib.py
Lib/sgmllib.py
+1
-1
Lib/site.py
Lib/site.py
+1
-1
Lib/test/test_al.py
Lib/test/test_al.py
+1
-1
Lib/test/test_b1.py
Lib/test/test_b1.py
+1
-1
Lib/test/test_cd.py
Lib/test/test_cd.py
+1
-1
Lib/test/test_cl.py
Lib/test/test_cl.py
+1
-1
Lib/test/test_pwd.py
Lib/test/test_pwd.py
+1
-1
Lib/test/test_winreg.py
Lib/test/test_winreg.py
+1
-1
Lib/test/test_zlib.py
Lib/test/test_zlib.py
+1
-1
Lib/urllib2.py
Lib/urllib2.py
+1
-1
Lib/xmllib.py
Lib/xmllib.py
+1
-1
No files found.
Demo/pdist/rcslib.py
View file @
b19130b3
...
@@ -296,7 +296,7 @@ class RCS:
...
@@ -296,7 +296,7 @@ class RCS:
def _system(self, cmd):
def _system(self, cmd):
"""
INTERNAL
:
run
COMMAND
in
a
subshell
.
"""
INTERNAL
:
run
COMMAND
in
a
subshell
.
Standard
input
for
the
command
is
taken
fro
n
/
dev
/
null
.
Standard
input
for
the
command
is
taken
fro
m
/
dev
/
null
.
Raise
IOError
when
the
exit
status
is
not
zero
.
Raise
IOError
when
the
exit
status
is
not
zero
.
...
...
Demo/sgi/video/Vcopy.py
View file @
b19130b3
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
# - Manipulate the time base:
# - Manipulate the time base:
# = resample at a fixed rate
# = resample at a fixed rate
# = divide the time codes by a speed factor (to make it go faster/slower)
# = divide the time codes by a speed factor (to make it go faster/slower)
# = drop frames that are less than n msec apart (to accomodate slow players)
# = drop frames that are less than n msec apart (to accom
m
odate slow players)
# - Convert to a different format
# - Convert to a different format
# - Magnify (scale) the image
# - Magnify (scale) the image
...
...
Demo/sgi/video/Vtime.py
View file @
b19130b3
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#
#
# - resample at a fixed rate
# - resample at a fixed rate
# - divide the time codes by a speed factor (to make it go faster/slower)
# - divide the time codes by a speed factor (to make it go faster/slower)
# - drop frames that are less than n msec apart (to accomodate slow players)
# - drop frames that are less than n msec apart (to accom
m
odate slow players)
# Usage:
# Usage:
...
...
Lib/Queue.py
View file @
b19130b3
...
@@ -119,7 +119,7 @@ class Queue:
...
@@ -119,7 +119,7 @@ class Queue:
def
_qsize
(
self
):
def
_qsize
(
self
):
return
len
(
self
.
queue
)
return
len
(
self
.
queue
)
# Check wheter the queue is empty
# Check whet
h
er the queue is empty
def
_empty
(
self
):
def
_empty
(
self
):
return
not
self
.
queue
return
not
self
.
queue
...
...
Lib/binhex.py
View file @
b19130b3
...
@@ -13,7 +13,7 @@ hexbin(inputfilename, outputfilename)
...
@@ -13,7 +13,7 @@ hexbin(inputfilename, outputfilename)
# XXXX Note: currently, textfiles appear in mac-form on all platforms.
# XXXX Note: currently, textfiles appear in mac-form on all platforms.
# We seem to lack a simple character-translate in python.
# We seem to lack a simple character-translate in python.
# (we should probably use ISO-Latin-1 on all but the mac platform).
# (we should probably use ISO-Latin-1 on all but the mac platform).
# XXXX The sim
e
ple routines are too simple: they expect to hold the complete
# XXXX The simple routines are too simple: they expect to hold the complete
# files in-core. Should be fixed.
# files in-core. Should be fixed.
# XXXX It would be nice to handle AppleDouble format on unix
# XXXX It would be nice to handle AppleDouble format on unix
# (for servers serving macs).
# (for servers serving macs).
...
@@ -48,7 +48,7 @@ if os.name == 'mac':
...
@@ -48,7 +48,7 @@ if os.name == 'mac':
try
:
try
:
openrf
=
MacOS
.
openrf
openrf
=
MacOS
.
openrf
except
AttributeError
:
except
AttributeError
:
# Backward compat
a
bility
# Backward compat
i
bility
openrf
=
open
openrf
=
open
def
FInfo
():
def
FInfo
():
...
...
Lib/calendar.py
View file @
b19130b3
"""Calendar printing functions"""
"""Calendar printing functions"""
# Revision 2: uses funtions from built-in time module
# Revision 2: uses fun
c
tions from built-in time module
# Import functions and variables from time module
# Import functions and variables from time module
from
time
import
localtime
,
mktime
from
time
import
localtime
,
mktime
...
...
Lib/distutils/cmd.py
View file @
b19130b3
...
@@ -323,7 +323,7 @@ class Command:
...
@@ -323,7 +323,7 @@ class Command:
should be disabled by the "dry run" flag, and should announce
should be disabled by the "dry run" flag, and should announce
themselves if the current verbosity level is high enough. This
themselves if the current verbosity level is high enough. This
method takes care of all that bureaucracy for you; all you have to
method takes care of all that bureaucracy for you; all you have to
do is supply the funtion to call and an argument tuple for it (to
do is supply the fun
c
tion to call and an argument tuple for it (to
embody the "external action" being performed), a message to print
embody the "external action" being performed), a message to print
if the verbosity level is high enough, and an optional verbosity
if the verbosity level is high enough, and an optional verbosity
threshold.
threshold.
...
...
Lib/distutils/command/build_ext.py
View file @
b19130b3
"""distutils.command.build_ext
"""distutils.command.build_ext
Implements the Distutils 'build_ext' command, for building extension
Implements the Distutils 'build_ext' command, for building extension
modules (currently limited to C extensions, should accomodate C++
modules (currently limited to C extensions, should accom
m
odate C++
extensions ASAP)."""
extensions ASAP)."""
# created 1999/08/09, Greg Ward
# created 1999/08/09, Greg Ward
...
@@ -385,7 +385,7 @@ class build_ext (Command):
...
@@ -385,7 +385,7 @@ class build_ext (Command):
# Next, compile the source code to object files.
# Next, compile the source code to object files.
# XXX not honouring 'define_macros' or 'undef_macros' -- the
# XXX not honouring 'define_macros' or 'undef_macros' -- the
# CCompiler API needs to change to accomodate this, and I
# CCompiler API needs to change to accom
m
odate this, and I
# want to do one thing at a time!
# want to do one thing at a time!
# Two possible sources for extra compiler arguments:
# Two possible sources for extra compiler arguments:
...
...
Lib/distutils/util.py
View file @
b19130b3
...
@@ -28,7 +28,7 @@ else:
...
@@ -28,7 +28,7 @@ else:
return
os
.
path
.
normpath
(
path
)
return
os
.
path
.
normpath
(
path
)
# More backwards compat
a
bility hacks
# More backwards compat
i
bility hacks
def
extend
(
list
,
new_list
):
def
extend
(
list
,
new_list
):
"""Appends the list 'new_list' to 'list', just like the 'extend()'
"""Appends the list 'new_list' to 'list', just like the 'extend()'
list method does in Python 1.5.2 -- but this works on earlier
list method does in Python 1.5.2 -- but this works on earlier
...
...
Lib/distutils/version.py
View file @
b19130b3
...
@@ -207,7 +207,7 @@ class StrictVersion (Version):
...
@@ -207,7 +207,7 @@ class StrictVersion (Version):
# provides enough benefit to be worth using, and will submit their
# provides enough benefit to be worth using, and will submit their
# version numbering scheme to its domination. The free-thinking
# version numbering scheme to its domination. The free-thinking
# anarchists in the lot will never give in, though, and something needs
# anarchists in the lot will never give in, though, and something needs
# to be done to accomodate them.
# to be done to accom
m
odate them.
#
#
# Perhaps a "moderately strict" version class could be implemented that
# Perhaps a "moderately strict" version class could be implemented that
# lets almost anything slide (syntactically), and makes some heuristic
# lets almost anything slide (syntactically), and makes some heuristic
...
...
Lib/dos-8x3/posixpat.py
View file @
b19130b3
...
@@ -24,7 +24,7 @@ def normcase(s):
...
@@ -24,7 +24,7 @@ def normcase(s):
return
s
return
s
# Return wheter a path is absolute.
# Return whet
h
er a path is absolute.
# Trivial in Posix, harder on the Mac or MS-DOS.
# Trivial in Posix, harder on the Mac or MS-DOS.
def
isabs
(
s
):
def
isabs
(
s
):
...
@@ -304,7 +304,7 @@ do nothing"""
...
@@ -304,7 +304,7 @@ do nothing"""
# Expand paths containing shell variable substitutions.
# Expand paths containing shell variable substitutions.
# This expands the forms $variable and ${variable} only.
# This expands the forms $variable and ${variable} only.
# Non-exist
a
nt variables are left unchanged.
# Non-exist
e
nt variables are left unchanged.
_varprog
=
None
_varprog
=
None
...
...
Lib/dos-8x3/queue.py
View file @
b19130b3
...
@@ -119,7 +119,7 @@ class Queue:
...
@@ -119,7 +119,7 @@ class Queue:
def
_qsize
(
self
):
def
_qsize
(
self
):
return
len
(
self
.
queue
)
return
len
(
self
.
queue
)
# Check wheter the queue is empty
# Check whet
h
er the queue is empty
def
_empty
(
self
):
def
_empty
(
self
):
return
not
self
.
queue
return
not
self
.
queue
...
...
Lib/dos-8x3/test_win.py
View file @
b19130b3
...
@@ -115,7 +115,7 @@ def DeleteTestData(root_key):
...
@@ -115,7 +115,7 @@ def DeleteTestData(root_key):
# Opening should now fail!
# Opening should now fail!
try
:
try
:
key
=
OpenKey
(
root_key
,
test_key_name
)
key
=
OpenKey
(
root_key
,
test_key_name
)
assert
0
,
"Could open the non-exist
a
nt key"
assert
0
,
"Could open the non-exist
e
nt key"
except
WindowsError
:
# Use this error name this time
except
WindowsError
:
# Use this error name this time
pass
pass
...
...
Lib/fnmatch.py
View file @
b19130b3
...
@@ -36,7 +36,7 @@ def fnmatch(name, pat):
...
@@ -36,7 +36,7 @@ def fnmatch(name, pat):
return
fnmatchcase
(
name
,
pat
)
return
fnmatchcase
(
name
,
pat
)
def
fnmatchcase
(
name
,
pat
):
def
fnmatchcase
(
name
,
pat
):
"""Test wheter FILENAME matches PATTERN, including case.
"""Test whet
h
er FILENAME matches PATTERN, including case.
This is a version of fnmatch() which doesn't case-normalize
This is a version of fnmatch() which doesn't case-normalize
its arguments.
its arguments.
...
...
Lib/locale.py
View file @
b19130b3
...
@@ -220,7 +220,7 @@ def _parse_localename(localename):
...
@@ -220,7 +220,7 @@ def _parse_localename(localename):
The language code corresponds to RFC 1766. code and encoding
The language code corresponds to RFC 1766. code and encoding
can be None in case the values cannot be determined or are
can be None in case the values cannot be determined or are
unkown to this implementation.
unk
n
own to this implementation.
"""
"""
code
=
normalize
(
localename
)
code
=
normalize
(
localename
)
...
@@ -229,7 +229,7 @@ def _parse_localename(localename):
...
@@ -229,7 +229,7 @@ def _parse_localename(localename):
elif
code
==
'C'
:
elif
code
==
'C'
:
return
None
,
None
return
None
,
None
else
:
else
:
raise
ValueError
,
'unkown locale: %s'
%
localename
raise
ValueError
,
'unk
n
own locale: %s'
%
localename
return
l
return
l
def
_build_localename
(
localetuple
):
def
_build_localename
(
localetuple
):
...
...
Lib/plat-irix5/CL_old.py
View file @
b19130b3
...
@@ -200,7 +200,7 @@ TOP_DOWN = 0
...
@@ -200,7 +200,7 @@ TOP_DOWN = 0
BOTTOM_UP
=
1
BOTTOM_UP
=
1
#
#
# SGI Proprieta
t
y Algorithm Header Start Code
# SGI Proprieta
r
y Algorithm Header Start Code
#
#
HEADER_START_CODE
=
0xc1C0DEC
HEADER_START_CODE
=
0xc1C0DEC
...
...
Lib/plat-irix5/flp.py
View file @
b19130b3
...
@@ -203,7 +203,7 @@ def _parse_fd_header(file):
...
@@ -203,7 +203,7 @@ def _parse_fd_header(file):
return
datum
[
1
]
return
datum
[
1
]
#
#
# Internal: parse fd form, or skip if name doesn't match.
# Internal: parse fd form, or skip if name doesn't match.
# the special value None means 'al
l
ways parse it'.
# the special value None means 'always parse it'.
#
#
def
_parse_fd_form
(
file
,
name
):
def
_parse_fd_form
(
file
,
name
):
datum
=
_parse_1_line
(
file
)
datum
=
_parse_1_line
(
file
)
...
@@ -222,7 +222,7 @@ def _parse_fd_form(file, name):
...
@@ -222,7 +222,7 @@ def _parse_fd_form(file, name):
return
None
return
None
#
#
# Internal class: a convient place to store object info fields
# Internal class: a conv
en
ient place to store object info fields
#
#
class
_newobj
:
class
_newobj
:
def
add
(
self
,
name
,
value
):
def
add
(
self
,
name
,
value
):
...
...
Lib/plat-irix5/panel.py
View file @
b19130b3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#
#
# Support for the Panel library.
# Support for the Panel library.
# Uses built-in module 'pnl'.
# Uses built-in module 'pnl'.
# Appl
ci
ations should use 'panel.function' instead of 'pnl.function';
# Appl
ic
ations should use 'panel.function' instead of 'pnl.function';
# most 'pnl' functions are transparently exported by 'panel',
# most 'pnl' functions are transparently exported by 'panel',
# but dopanel() is overridden and you have to use this version
# but dopanel() is overridden and you have to use this version
# if you want to use callbacks.
# if you want to use callbacks.
...
@@ -137,7 +137,7 @@ def assign_members(target, attrlist, exclist, prefix):
...
@@ -137,7 +137,7 @@ def assign_members(target, attrlist, exclist, prefix):
print
'assign failed:'
,
stmt
print
'assign failed:'
,
stmt
# Build a real actuator from an actuator descriptio
r
.
# Build a real actuator from an actuator descriptio
n
.
# Return a pair (actuator, name).
# Return a pair (actuator, name).
#
#
def
build_actuator
(
descr
):
def
build_actuator
(
descr
):
...
...
Lib/plat-irix6/flp.py
View file @
b19130b3
...
@@ -203,7 +203,7 @@ def _parse_fd_header(file):
...
@@ -203,7 +203,7 @@ def _parse_fd_header(file):
return
datum
[
1
]
return
datum
[
1
]
#
#
# Internal: parse fd form, or skip if name doesn't match.
# Internal: parse fd form, or skip if name doesn't match.
# the special value None means 'al
l
ways parse it'.
# the special value None means 'always parse it'.
#
#
def
_parse_fd_form
(
file
,
name
):
def
_parse_fd_form
(
file
,
name
):
datum
=
_parse_1_line
(
file
)
datum
=
_parse_1_line
(
file
)
...
@@ -222,7 +222,7 @@ def _parse_fd_form(file, name):
...
@@ -222,7 +222,7 @@ def _parse_fd_form(file, name):
return
None
return
None
#
#
# Internal class: a convient place to store object info fields
# Internal class: a conv
en
ient place to store object info fields
#
#
class
_newobj
:
class
_newobj
:
def
add
(
self
,
name
,
value
):
def
add
(
self
,
name
,
value
):
...
...
Lib/plat-irix6/panel.py
View file @
b19130b3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#
#
# Support for the Panel library.
# Support for the Panel library.
# Uses built-in module 'pnl'.
# Uses built-in module 'pnl'.
# Appl
ci
ations should use 'panel.function' instead of 'pnl.function';
# Appl
ic
ations should use 'panel.function' instead of 'pnl.function';
# most 'pnl' functions are transparently exported by 'panel',
# most 'pnl' functions are transparently exported by 'panel',
# but dopanel() is overridden and you have to use this version
# but dopanel() is overridden and you have to use this version
# if you want to use callbacks.
# if you want to use callbacks.
...
@@ -137,7 +137,7 @@ def assign_members(target, attrlist, exclist, prefix):
...
@@ -137,7 +137,7 @@ def assign_members(target, attrlist, exclist, prefix):
print
'assign failed:'
,
stmt
print
'assign failed:'
,
stmt
# Build a real actuator from an actuator descriptio
r
.
# Build a real actuator from an actuator descriptio
n
.
# Return a pair (actuator, name).
# Return a pair (actuator, name).
#
#
def
build_actuator
(
descr
):
def
build_actuator
(
descr
):
...
...
Lib/posixpath.py
View file @
b19130b3
...
@@ -24,7 +24,7 @@ def normcase(s):
...
@@ -24,7 +24,7 @@ def normcase(s):
return
s
return
s
# Return wheter a path is absolute.
# Return whet
h
er a path is absolute.
# Trivial in Posix, harder on the Mac or MS-DOS.
# Trivial in Posix, harder on the Mac or MS-DOS.
def
isabs
(
s
):
def
isabs
(
s
):
...
@@ -304,7 +304,7 @@ do nothing"""
...
@@ -304,7 +304,7 @@ do nothing"""
# Expand paths containing shell variable substitutions.
# Expand paths containing shell variable substitutions.
# This expands the forms $variable and ${variable} only.
# This expands the forms $variable and ${variable} only.
# Non-exist
a
nt variables are left unchanged.
# Non-exist
e
nt variables are left unchanged.
_varprog
=
None
_varprog
=
None
...
...
Lib/sgmllib.py
View file @
b19130b3
...
@@ -47,7 +47,7 @@ attrfind = re.compile(
...
@@ -47,7 +47,7 @@ attrfind = re.compile(
# <foo> and </foo>, respectively, or do_foo to handle <foo> by itself.
# <foo> and </foo>, respectively, or do_foo to handle <foo> by itself.
# (Tags are converted to lower case for this purpose.) The data
# (Tags are converted to lower case for this purpose.) The data
# between tags is passed to the parser by calling self.handle_data()
# between tags is passed to the parser by calling self.handle_data()
# with some data as argument (the data may be split up in arb
u
trary
# with some data as argument (the data may be split up in arb
i
trary
# chunks). Entity references are passed by calling
# chunks). Entity references are passed by calling
# self.handle_entityref() with the entity reference as argument.
# self.handle_entityref() with the entity reference as argument.
...
...
Lib/site.py
View file @
b19130b3
...
@@ -122,7 +122,7 @@ del exit
...
@@ -122,7 +122,7 @@ del exit
#
#
# Set the string encoding used by the Unicode implementation to the
# Set the string encoding used by the Unicode implementation to the
# encoding used by the default locale of this system. If the default
# encoding used by the default locale of this system. If the default
# encoding cannot be determined or is unkown, it defaults to 'ascii'.
# encoding cannot be determined or is unk
n
own, it defaults to 'ascii'.
#
#
def
locale_aware_defaultencoding
():
def
locale_aware_defaultencoding
():
import
locale
import
locale
...
...
Lib/test/test_al.py
View file @
b19130b3
...
@@ -8,7 +8,7 @@ from test_support import verbose
...
@@ -8,7 +8,7 @@ from test_support import verbose
alattrs
=
[
'__doc__'
,
'__name__'
,
'getdefault'
,
'getminmax'
,
'getname'
,
'getparams'
,
alattrs
=
[
'__doc__'
,
'__name__'
,
'getdefault'
,
'getminmax'
,
'getname'
,
'getparams'
,
'newconfig'
,
'openport'
,
'queryparams'
,
'setparams'
]
'newconfig'
,
'openport'
,
'queryparams'
,
'setparams'
]
# This is a very
inobstrusive test for the exista
nce of the al module and all it's
# This is a very
unobtrusive test for the existe
nce of the al module and all it's
# attributes. More comprehensive examples can be found in Demo/al
# attributes. More comprehensive examples can be found in Demo/al
def
main
():
def
main
():
...
...
Lib/test/test_b1.py
View file @
b19130b3
...
@@ -270,7 +270,7 @@ if int(-3.5) <> -3: raise TestFailed, 'int(-3.5)'
...
@@ -270,7 +270,7 @@ if int(-3.5) <> -3: raise TestFailed, 'int(-3.5)'
# Different base:
# Different base:
if
int
(
"10"
,
16
)
<>
16L
:
raise
TestFailed
,
'int("10",16)'
if
int
(
"10"
,
16
)
<>
16L
:
raise
TestFailed
,
'int("10",16)'
if
int
(
u"10"
,
16
)
<>
16L
:
raise
TestFailed
,
'int(u"10",16)'
if
int
(
u"10"
,
16
)
<>
16L
:
raise
TestFailed
,
'int(u"10",16)'
# Test conversion fro
n
strings and various anomalies
# Test conversion fro
m
strings and various anomalies
L
=
[
L
=
[
(
'0'
,
0
),
(
'0'
,
0
),
(
'1'
,
1
),
(
'1'
,
1
),
...
...
Lib/test/test_cd.py
View file @
b19130b3
...
@@ -10,7 +10,7 @@ cdattrs = ['BLOCKSIZE', 'CDROM', 'DATASIZE', 'ERROR', 'NODISC', 'PAUSED', 'PLAYI
...
@@ -10,7 +10,7 @@ cdattrs = ['BLOCKSIZE', 'CDROM', 'DATASIZE', 'ERROR', 'NODISC', 'PAUSED', 'PLAYI
'ident'
,
'index'
,
'msftoframe'
,
'open'
,
'pnum'
,
'ptime'
]
'ident'
,
'index'
,
'msftoframe'
,
'open'
,
'pnum'
,
'ptime'
]
# This is a very inob
strusive test for the exista
nce of the cd module and all it's
# This is a very inob
trusive test for the existe
nce of the cd module and all it's
# attributes. More comprehensive examples can be found in Demo/cd and
# attributes. More comprehensive examples can be found in Demo/cd and
# require that you have a CD and a CD ROM drive
# require that you have a CD and a CD ROM drive
...
...
Lib/test/test_cl.py
View file @
b19130b3
...
@@ -63,7 +63,7 @@ clattrs = ['ADDED_ALGORITHM_ERROR', 'ALAW', 'ALGORITHM_ID',
...
@@ -63,7 +63,7 @@ clattrs = ['ADDED_ALGORITHM_ERROR', 'ALAW', 'ALGORITHM_ID',
'YUV422DC'
,
'YUV422HC'
,
'__doc__'
,
'__name__'
,
'cvt_type'
,
'error'
]
'YUV422DC'
,
'YUV422HC'
,
'__doc__'
,
'__name__'
,
'cvt_type'
,
'error'
]
# This is a very inob
strusive test for the exista
nce of the cl
# This is a very inob
trusive test for the existe
nce of the cl
# module and all it's attributes.
# module and all it's attributes.
def
main
():
def
main
():
...
...
Lib/test/test_pwd.py
View file @
b19130b3
...
@@ -59,7 +59,7 @@ except KeyError:
...
@@ -59,7 +59,7 @@ except KeyError:
else
:
else
:
print
'fakename'
,
fakename
,
'did not except pwd.getpwnam()'
print
'fakename'
,
fakename
,
'did not except pwd.getpwnam()'
# Choose a non-exist
a
nt uid.
# Choose a non-exist
e
nt uid.
fakeuid
=
4127
fakeuid
=
4127
while
byuids
.
has_key
(
fakeuid
):
while
byuids
.
has_key
(
fakeuid
):
fakeuid
=
(
fakeuid
*
3
)
%
0x10000
fakeuid
=
(
fakeuid
*
3
)
%
0x10000
...
...
Lib/test/test_winreg.py
View file @
b19130b3
...
@@ -115,7 +115,7 @@ def DeleteTestData(root_key):
...
@@ -115,7 +115,7 @@ def DeleteTestData(root_key):
# Opening should now fail!
# Opening should now fail!
try
:
try
:
key
=
OpenKey
(
root_key
,
test_key_name
)
key
=
OpenKey
(
root_key
,
test_key_name
)
assert
0
,
"Could open the non-exist
a
nt key"
assert
0
,
"Could open the non-exist
e
nt key"
except
WindowsError
:
# Use this error name this time
except
WindowsError
:
# Use this error name this time
pass
pass
...
...
Lib/test/test_zlib.py
View file @
b19130b3
...
@@ -11,7 +11,7 @@ except ImportError:
...
@@ -11,7 +11,7 @@ except ImportError:
buf
=
file
.
read
()
*
8
buf
=
file
.
read
()
*
8
file
.
close
()
file
.
close
()
# test the ch
u
cksums (hex so the test doesn't break on 64-bit machines)
# test the ch
e
cksums (hex so the test doesn't break on 64-bit machines)
print
hex
(
zlib
.
crc32
(
'penguin'
)),
hex
(
zlib
.
crc32
(
'penguin'
,
1
))
print
hex
(
zlib
.
crc32
(
'penguin'
)),
hex
(
zlib
.
crc32
(
'penguin'
,
1
))
print
hex
(
zlib
.
adler32
(
'penguin'
)),
hex
(
zlib
.
adler32
(
'penguin'
,
1
))
print
hex
(
zlib
.
adler32
(
'penguin'
)),
hex
(
zlib
.
adler32
(
'penguin'
,
1
))
...
...
Lib/urllib2.py
View file @
b19130b3
...
@@ -141,7 +141,7 @@ def install_opener(opener):
...
@@ -141,7 +141,7 @@ def install_opener(opener):
_opener
=
opener
_opener
=
opener
# do these error classes make sense?
# do these error classes make sense?
# make sure all of the IOError stuff is overriden. we just want to be
# make sure all of the IOError stuff is overrid
d
en. we just want to be
# subtypes.
# subtypes.
class
URLError
(
IOError
):
class
URLError
(
IOError
):
...
...
Lib/xmllib.py
View file @
b19130b3
...
@@ -79,7 +79,7 @@ xmlns = re.compile('xmlns(?::(?P<ncname>'+_NCName+'))?$')
...
@@ -79,7 +79,7 @@ xmlns = re.compile('xmlns(?::(?P<ncname>'+_NCName+'))?$')
# special names to handle tags: start_foo and end_foo to handle <foo>
# special names to handle tags: start_foo and end_foo to handle <foo>
# and </foo>, respectively. The data between tags is passed to the
# and </foo>, respectively. The data between tags is passed to the
# parser by calling self.handle_data() with some data as argument (the
# parser by calling self.handle_data() with some data as argument (the
# data may be split up in arb
u
trary chunks).
# data may be split up in arb
i
trary chunks).
class XMLParser:
class XMLParser:
attributes = {} # default, to be overridden
attributes = {} # default, to be overridden
...
...
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