diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/tempfile.py | 5 |
1 files changed, 1 insertions, 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): |