summaryrefslogtreecommitdiffstats
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2011-10-28 19:58:56 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2011-10-28 19:58:56 (GMT)
commit46f5d146c157f1a30c48aced22269271bb754b35 (patch)
tree26d23abbd43aac1af3b9e7e4fe9e746d69111334 /Lib/tempfile.py
parent68f71a34f4a799276a50f4001fb0a0ebe2d46992 (diff)
downloadcpython-46f5d146c157f1a30c48aced22269271bb754b35.zip
cpython-46f5d146c157f1a30c48aced22269271bb754b35.tar.gz
cpython-46f5d146c157f1a30c48aced22269271bb754b35.tar.bz2
Remove no-op code from previous commit.
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r--Lib/tempfile.py5
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):