From: Benjamin Peterson Date: Sat, 30 Oct 2010 23:00:54 +0000 (+0000) Subject: remove useless assignment X-Git-Tag: v3.2a4~248 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a7127f6df71af71ff7415e72169dcfd57da2986;p=python remove useless assignment --- diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 359ef915d2..98d8a348bf 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -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)