summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth M. Larson <SethMichaelLarson@users.noreply.github.com>2017-03-23 17:06:42 -0500
committerGitHub <noreply@github.com>2017-03-23 17:06:42 -0500
commit99e9293ab756d376cc9eb0d522e3f1bdcc58925b (patch)
treead15e23edb3abfa3c32bba67a3c08f35db8b9951
parentd1063eca4f6401c451bf03965e0a00feba1aa898 (diff)
downloadredis-py-99e9293ab756d376cc9eb0d522e3f1bdcc58925b.tar.gz
Fix PEP8 issues.
-rw-r--r--redis/_compat.py2
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