diff options
author | Seth M. Larson <SethMichaelLarson@users.noreply.github.com> | 2017-03-23 17:06:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-23 17:06:42 -0500 |
commit | 99e9293ab756d376cc9eb0d522e3f1bdcc58925b (patch) | |
tree | ad15e23edb3abfa3c32bba67a3c08f35db8b9951 /redis/_compat.py | |
parent | d1063eca4f6401c451bf03965e0a00feba1aa898 (diff) | |
download | redis-py-99e9293ab756d376cc9eb0d522e3f1bdcc58925b.tar.gz |
Fix PEP8 issues.
Diffstat (limited to 'redis/_compat.py')
-rw-r--r-- | redis/_compat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/_compat.py b/redis/_compat.py index 93564bc..307f3cc 100644 --- a/redis/_compat.py +++ b/redis/_compat.py @@ -24,7 +24,7 @@ if sys.version_info[0] < 3 or (sys.version_info[0] == 3 and except InterruptedError as e: # Python 2 does not define InterruptedError, instead # try to catch an OSError with errno == EINTR == 4. - if hasattr(e, 'errno') and e.errno == getattr(errno, 'EINTR', 4): + if getattr(e, 'errno', None) == getattr(errno, 'EINTR', 4): continue raise |