BIND 10 #848: Missing name when using errno in notify_out.py
BIND 10 Development
do-not-reply at isc.org
Tue Apr 12 17:30:37 UTC 2011
#848: Missing name when using errno in notify_out.py
-------------------------------------+-------------------------------------
Reporter: shane | Owner:
Type: defect | Status: new
Priority: major | Milestone: Year 3
Component: Unclassified | Task Backlog
Sensitive: 0 | Keywords:
Add Hours to Ticket: 0 | Estimated Number of Hours: 0
Total Hours: 0 | Billable?: 1
| Internal?: 0
-------------------------------------+-------------------------------------
Jeremy reported the following:
{{{
Traceback (most recent call last):
File "/usr/pkg/lib/python3.1/threading.py", line 509, in
_bootstrap_inner
self.run()
File "/usr/pkg/lib/python3.1/threading.py", line 462, in run
self._target(*self._args, **self._kwargs)
File
"/home/reed/opt/bind10/lib/python3.1/site-
packages/isc/notify/notify_out.py",
line 157, in _dispatcher
replied_zones, not_replied_zones = self._wait_for_notify_reply()
File
"/home/reed/opt/bind10/lib/python3.1/site-
packages/isc/notify/notify_out.py",
line 303, in _wait_for_notify_reply
if err.args[0] != EINTR:
NameError: global name 'EINTR' is not defined
}}}
It turns out this is an error. It should be using errno.EINTR, as the
import of errno is done like:
{{{
import errno
}}}
And not like:
{{{
from errno import *
}}}
It's a one-line fix.
--
Ticket URL: <http://bind10.isc.org/ticket/848>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list