Kaydet (Commit) 27c70598 authored tarafından Tim Peters's avatar Tim Peters

Whitespace normalization.

üst aba19bc4
...@@ -1939,7 +1939,7 @@ def testfile(filename, module_relative=True, name=None, package=None, ...@@ -1939,7 +1939,7 @@ def testfile(filename, module_relative=True, name=None, package=None,
Optional keyword arg "encoding" specifies an encoding that should Optional keyword arg "encoding" specifies an encoding that should
be used to convert the file to unicode. be used to convert the file to unicode.
Advanced tomfoolery: testmod runs methods of a local instance of Advanced tomfoolery: testmod runs methods of a local instance of
class doctest.Tester, then merges the results into (or creates) class doctest.Tester, then merges the results into (or creates)
global Tester instance doctest.master. Methods of doctest.master global Tester instance doctest.master. Methods of doctest.master
...@@ -2366,7 +2366,7 @@ def DocFileTest(path, module_relative=True, package=None, ...@@ -2366,7 +2366,7 @@ def DocFileTest(path, module_relative=True, package=None,
# Find the file and read it. # Find the file and read it.
name = os.path.basename(path) name = os.path.basename(path)
# If an encoding is specified, use it to convert the file to unicode # If an encoding is specified, use it to convert the file to unicode
if encoding is not None: if encoding is not None:
doc = doc.decode(encoding) doc = doc.decode(encoding)
...@@ -2427,7 +2427,7 @@ def DocFileSuite(*paths, **kw): ...@@ -2427,7 +2427,7 @@ def DocFileSuite(*paths, **kw):
parser parser
A DocTestParser (or subclass) that should be used to extract A DocTestParser (or subclass) that should be used to extract
tests from the files. tests from the files.
encoding encoding
An encoding that will be used to convert the files to unicode. An encoding that will be used to convert the files to unicode.
""" """
......
...@@ -23,4 +23,4 @@ __all__ = [ ...@@ -23,4 +23,4 @@ __all__ = [
# The wraps function makes it easy to avoid the bug that afflicts the # The wraps function makes it easy to avoid the bug that afflicts the
# decorator example in the python-dev email proposing the # decorator example in the python-dev email proposing the
# update_wrapper function: # update_wrapper function:
# http://mail.python.org/pipermail/python-dev/2006-May/064775.html # http://mail.python.org/pipermail/python-dev/2006-May/064775.html
\ No newline at end of file
...@@ -179,7 +179,7 @@ def test_workload(): ...@@ -179,7 +179,7 @@ def test_workload():
print 'after:', t1 print 'after:', t1
print 'differences:', (t1[0] - t0[0], t1[1] - t0[1]) print 'differences:', (t1[0] - t0[0], t1[1] - t0[1])
print print
def test_idle(): def test_idle():
print 'Testing systimes() under idle conditions' print 'Testing systimes() under idle conditions'
t0 = systimes() t0 = systimes()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment