Browse Source

[1831] Fix a deprecation warning in xfrin.py

Also add my name to AUTHORS.
Paul Selkirk 12 years ago
parent
commit
47b58321cd
2 changed files with 2 additions and 1 deletions
  1. 1 0
      AUTHORS
  2. 1 1
      src/bin/xfrin/xfrin.py.in

+ 1 - 0
AUTHORS

@@ -14,6 +14,7 @@ Michael Graff
 Michal Vaner
 Michal Vaner
 Mukund Sivaraman
 Mukund Sivaraman
 Naoki Kambe
 Naoki Kambe
+Paul Selkirk
 Shane Kerr
 Shane Kerr
 Shen Tingting
 Shen Tingting
 Stephen Morris
 Stephen Morris

+ 1 - 1
src/bin/xfrin/xfrin.py.in

@@ -622,7 +622,7 @@ class XfrinConnection(asyncore.dispatcher):
         it if the constructor raises an exception after opening the socket.
         it if the constructor raises an exception after opening the socket.
         '''
         '''
         self.create_socket(self._master_addrinfo[0], self._master_addrinfo[1])
         self.create_socket(self._master_addrinfo[0], self._master_addrinfo[1])
-        self.setblocking(1)
+        self.socket.setblocking(1)
 
 
     def _get_zone_soa(self):
     def _get_zone_soa(self):
         '''Retrieve the current SOA RR of the zone to be transferred.
         '''Retrieve the current SOA RR of the zone to be transferred.