From: Florent Xicluna Date: Fri, 28 Oct 2011 19:58:56 +0000 (+0200) Subject: Remove no-op code from previous commit. X-Git-Tag: v3.3.0a1~1041 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=46f5d146c157f1a30c48aced22269271bb754b35;p=thirdparty%2FPython%2Fcpython.git Remove no-op code from previous commit. --- diff --git a/Lib/tempfile.py b/Lib/tempfile.py index ed107f4ea88d..3ec6b4a3da9f 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):