summaryrefslogtreecommitdiffstats
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-10-22 16:16:13 (GMT)
committerGeorg Brandl <georg@python.org>2007-10-22 16:16:13 (GMT)
commit6464d471950c6ee109f82597ff70d755c127074f (patch)
tree6cae509d41f93e28b91405c76e97fea9fb7b4b32 /Lib/asyncore.py
parentb8990aac3a74309d9569fa543f83d754b8aa83d6 (diff)
downloadcpython-6464d471950c6ee109f82597ff70d755c127074f.zip
cpython-6464d471950c6ee109f82597ff70d755c127074f.tar.gz
cpython-6464d471950c6ee109f82597ff70d755c127074f.tar.bz2
In followup to #1310: Remove more exception indexing.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index ceaeeab..3829c61 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -120,7 +120,7 @@ def poll(timeout=0.0, map=None):
try:
r, w, e = select.select(r, w, e, timeout)
except select.error as err:
- if err[0] != EINTR:
+ if err.args[0] != EINTR:
raise
else:
return
@@ -166,7 +166,7 @@ def poll2(timeout=0.0, map=None):
try:
r = pollster.poll(timeout)
except select.error as err:
- if err[0] != EINTR:
+ if err.args[0] != EINTR:
raise
r = []
for fd, flags in r: