~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to test_on_merge.py

  • Committer: Martin Pool
  • Date: 2010-08-12 04:04:24 UTC
  • mto: This revision was merged to the branch mainline in revision 11635.
  • Revision ID: mbp@canonical.com-20100812040424-w8j0c93g06sr9zr0
select.error doesn't have an errno attribute, only an args tuple

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
                rlist, wlist, xlist = select.select(open_readers, [], [], TIMEOUT)
165
165
                break
166
166
            except select.error, e:
167
 
                if e.errno == errno.EINTR:
 
167
                # nb: select.error doesn't expose a named 'errno' attribute,
 
168
                # at least in python 2.6.5; see
 
169
                # <http://mail.python.org/pipermail/python-dev/2000-October/009671.html>
 
170
                if e[0] == errno.EINTR:
168
171
                    continue
169
172
                else:
170
173
                    raise