]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove no-op code from previous commit.
authorFlorent Xicluna <florent.xicluna@gmail.com>
Fri, 28 Oct 2011 19:58:56 +0000 (21:58 +0200)
committerFlorent Xicluna <florent.xicluna@gmail.com>
Fri, 28 Oct 2011 19:58:56 +0000 (21:58 +0200)
Lib/tempfile.py

index ed107f4ea88d8fde707318b78d472bb04be09221..3ec6b4a3da9f9a0968cf07f554507709c8299d4e 100644 (file)
@@ -87,10 +87,7 @@ else:
     # Fallback.  All we need is something that raises OSError if the
     # file doesn't exist.
     def _stat(fn):
-        try:
-            f = open(fn)
-        except OSError:
-            raise OSError
+        f = open(fn)
         f.close()
 
 def _exists(fn):