[Python-checkins] r46541 - in python/trunk: Lib/doctest.py Lib/functools.py Tools/pybench/systimes.py
tim.peters
python-checkins at python.org
Tue May 30 04:26:46 CEST 2006
Author: tim.peters
Date: Tue May 30 04:26:46 2006
New Revision: 46541
Modified:
python/trunk/Lib/doctest.py
python/trunk/Lib/functools.py
python/trunk/Tools/pybench/systimes.py
Log:
Whitespace normalization.
Modified: python/trunk/Lib/doctest.py
==============================================================================
--- python/trunk/Lib/doctest.py (original)
+++ python/trunk/Lib/doctest.py Tue May 30 04:26:46 2006
@@ -1939,7 +1939,7 @@
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 @@
# 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 @@
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.
"""
Modified: python/trunk/Lib/functools.py
==============================================================================
--- python/trunk/Lib/functools.py (original)
+++ python/trunk/Lib/functools.py Tue May 30 04:26:46 2006
@@ -23,4 +23,4 @@
# 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
Modified: python/trunk/Tools/pybench/systimes.py
==============================================================================
--- python/trunk/Tools/pybench/systimes.py (original)
+++ python/trunk/Tools/pybench/systimes.py Tue May 30 04:26:46 2006
@@ -179,7 +179,7 @@
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()
More information about the Python-checkins
mailing list