diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-20 10:33:40 +0300 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-20 10:33:40 +0300 |
| commit | ba9ac5b5c42a9bba54942211a3b00a1c3ce7bb23 (patch) | |
| tree | 84491ee8c5be973ab45551b7319bb71416946827 /Lib/functools.py | |
| parent | 492f0277933fd5714762a99ec99fd7f97d99866a (diff) | |
| download | cpython-git-ba9ac5b5c42a9bba54942211a3b00a1c3ce7bb23.tar.gz | |
Issue #16261: Converted some bare except statements to except statements
with specified exception type. Original patch by Ramchandra Apte.
Diffstat (limited to 'Lib/functools.py')
| -rw-r--r-- | Lib/functools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/functools.py b/Lib/functools.py index fb2e4bdfbb..19c25e1c05 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -23,7 +23,7 @@ from types import MappingProxyType from weakref import WeakKeyDictionary try: from _thread import RLock -except: +except ImportError: class RLock: 'Dummy reentrant lock for builds without threads' def __enter__(self): pass |
