]> granicus.if.org Git - python/commitdiff
Small nit, found by Neal.
authorGeorg Brandl <georg@python.org>
Tue, 6 Mar 2007 18:21:32 +0000 (18:21 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 6 Mar 2007 18:21:32 +0000 (18:21 +0000)
Lib/doctest.py

index 31339ed454b3772e4b87fd4928e1a35d8c250fe5..0db59baeae2280865e9692a391c57baec2fe1afe 100644 (file)
@@ -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)