From: Georg Brandl Date: Tue, 6 Mar 2007 18:21:32 +0000 (+0000) Subject: Small nit, found by Neal. X-Git-Tag: v2.6a1~2098 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cff1ae3a2faea532f3fb86bdb060e260b83f0b9b;p=python Small nit, found by Neal. --- diff --git a/Lib/doctest.py b/Lib/doctest.py index 31339ed454..0db59baeae 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)