]> granicus.if.org Git - python/commitdiff
Remove variable that is no longer used.
authorR. David Murray <rdmurray@bitdance.com>
Wed, 28 Oct 2009 14:03:43 +0000 (14:03 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Wed, 28 Oct 2009 14:03:43 +0000 (14:03 +0000)
Lib/test/regrtest.py

index 8511ab11770f18a30fb438ab9d0d6c1916211127..01cb5682b0ab2d31f80f6598f2a28427a398ad8c 100755 (executable)
@@ -1462,7 +1462,7 @@ if __name__ == '__main__':
     # much of the testing framework relies on the globals in the
     # test.test_support module.
     mydir = os.path.abspath(os.path.normpath(os.path.dirname(sys.argv[0])))
-    i = pathlen = len(sys.path)
+    i = len(sys.path)
     while i >= 0:
         i -= 1
         if os.path.abspath(os.path.normpath(sys.path[i])) == mydir: