From 46f5d146c157f1a30c48aced22269271bb754b35 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Fri, 28 Oct 2011 21:58:56 +0200 Subject: Remove no-op code from previous commit. --- Lib/tempfile.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Lib/tempfile.py b/Lib/tempfile.py index ed107f4..3ec6b4a 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -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): -- cgit v0.12