Mercurial > cpython-lru_cache-weakref
diff Lib/tempfile.py @ 73170:5bd8a04206e8
Remove no-op code from previous commit.
| author | Florent Xicluna <florent.xicluna@gmail.com> |
|---|---|
| date | Fri, 28 Oct 2011 21:58:56 +0200 |
| parents | e4d44c2e8e81 |
| children | 5a6911930bad |
line wrap: on
line diff
--- a/Lib/tempfile.py Fri Oct 28 16:06:23 2011 +0200 +++ b/Lib/tempfile.py Fri Oct 28 21:58:56 2011 +0200 @@ -87,10 +87,7 @@ # 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):
