[Python-checkins] r85993 - python/branches/py3k/Lib/test/test_import.py

benjamin.peterson python-checkins at python.org
Sun Oct 31 01:00:54 CEST 2010


Author: benjamin.peterson
Date: Sun Oct 31 01:00:54 2010
New Revision: 85993

Log:
remove useless assignment

Modified:
   python/branches/py3k/Lib/test/test_import.py

Modified: python/branches/py3k/Lib/test/test_import.py
==============================================================================
--- python/branches/py3k/Lib/test/test_import.py	(original)
+++ python/branches/py3k/Lib/test/test_import.py	Sun Oct 31 01:00:54 2010
@@ -102,7 +102,7 @@
             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)


More information about the Python-checkins mailing list