]> granicus.if.org Git - python/commitdiff
remove useless assignment
authorBenjamin Peterson <benjamin@python.org>
Sat, 30 Oct 2010 23:00:54 +0000 (23:00 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 30 Oct 2010 23:00:54 +0000 (23:00 +0000)
Lib/test/test_import.py

index 359ef915d2dd5d43ea6b36e5b6ba376d25cae3e4..98d8a348bfe1e8a113192f92eec207afcce0da00 100644 (file)
@@ -102,7 +102,7 @@ class ImportTests(unittest.TestCase):
             sys.path.insert(0, os.curdir)
             try:
                 fname = TESTFN + os.extsep + "py"
-                f = open(fname, 'w').close()
+                open(fname, 'w').close()
                 os.chmod(fname, (stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH |
                                  stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH))
                 __import__(TESTFN)