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
27c70598
Commit
27c70598
authored
May 30, 2006
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace normalization.
parent
aba19bc4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Lib/doctest.py
Lib/doctest.py
+3
-3
Lib/functools.py
Lib/functools.py
+1
-1
Tools/pybench/systimes.py
Tools/pybench/systimes.py
+1
-1
No files found.
Lib/doctest.py
View file @
27c70598
...
...
@@ -1939,7 +1939,7 @@ def testfile(filename, module_relative=True, name=None, package=None,
Optional keyword arg "encoding" specifies an encoding that should
be used to convert the file to unicode.
Advanced tomfoolery: testmod runs methods of a local instance of
class doctest.Tester, then merges the results into (or creates)
global Tester instance doctest.master. Methods of doctest.master
...
...
@@ -2366,7 +2366,7 @@ def DocFileTest(path, module_relative=True, package=None,
# Find the file and read it.
name
=
os
.
path
.
basename
(
path
)
# If an encoding is specified, use it to convert the file to unicode
if
encoding
is
not
None
:
doc
=
doc
.
decode
(
encoding
)
...
...
@@ -2427,7 +2427,7 @@ def DocFileSuite(*paths, **kw):
parser
A DocTestParser (or subclass) that should be used to extract
tests from the files.
encoding
An encoding that will be used to convert the files to unicode.
"""
...
...
Lib/functools.py
View file @
27c70598
...
...
@@ -23,4 +23,4 @@ __all__ = [
# The wraps function makes it easy to avoid the bug that afflicts the
# decorator example in the python-dev email proposing the
# update_wrapper function:
# http://mail.python.org/pipermail/python-dev/2006-May/064775.html
\ No newline at end of file
# http://mail.python.org/pipermail/python-dev/2006-May/064775.html
Tools/pybench/systimes.py
View file @
27c70598
...
...
@@ -179,7 +179,7 @@ def test_workload():
print
'after:'
,
t1
print
'differences:'
,
(
t1
[
0
]
-
t0
[
0
],
t1
[
1
]
-
t0
[
1
])
print
def
test_idle
():
print
'Testing systimes() under idle conditions'
t0
=
systimes
()
...
...
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