summaryrefslogtreecommitdiffstats
path: root/Lib/doctest.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-03-06 18:21:32 (GMT)
committerGeorg Brandl <georg@python.org>2007-03-06 18:21:32 (GMT)
commitcff1ae3a2faea532f3fb86bdb060e260b83f0b9b (patch)
treecec3b793fb8ea5b3cdd6c789643946f35f26f667 /Lib/doctest.py
parente95cf1c8a2cba11b38f9c83da659895fbc952466 (diff)
downloadcpython-cff1ae3a2faea532f3fb86bdb060e260b83f0b9b.zip
cpython-cff1ae3a2faea532f3fb86bdb060e260b83f0b9b.tar.gz
cpython-cff1ae3a2faea532f3fb86bdb060e260b83f0b9b.tar.bz2
Small nit, found by Neal.
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r--Lib/doctest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index 31339ed..0db59ba 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -2631,10 +2631,10 @@ __test__ = {"_TestClass": _TestClass,
def _test():
testfiles = [arg for arg in sys.argv[1:] if arg and arg[0] != '-']
- if len(testfiles) > 0:
+ if testfiles:
for filename in testfiles:
if filename.endswith(".py"):
- # This is a module -- insert its dir into sys.path and try to
+ # It is a module -- insert its dir into sys.path and try to
# import it. If it is part of a package, that possibly won't work
# because of package imports.
dirname, filename = os.path.split(filename)