[svn] commit: r158 - in /branches/f2f200910/src/lib/cc/python/ISC: CC/session.py Util/hexdump.py

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Oct 29 00:51:37 UTC 2009


Author: shane
Date: Thu Oct 29 00:51:37 2009
New Revision: 158

Log:
Python 3 fix-ups


Modified:
    branches/f2f200910/src/lib/cc/python/ISC/CC/session.py
    branches/f2f200910/src/lib/cc/python/ISC/Util/hexdump.py

Modified: branches/f2f200910/src/lib/cc/python/ISC/CC/session.py
==============================================================================
--- branches/f2f200910/src/lib/cc/python/ISC/CC/session.py (original)
+++ branches/f2f200910/src/lib/cc/python/ISC/CC/session.py Thu Oct 29 00:51:37 2009
@@ -41,7 +41,7 @@
             self._lname = msg["lname"]
             if not self._lname:
                 raise ProtocolError("Could not get local name")
-        except socket.error, se:
+        except socket.error as se:
                 raise SessionError(se)
 
     @property

Modified: branches/f2f200910/src/lib/cc/python/ISC/Util/hexdump.py
==============================================================================
--- branches/f2f200910/src/lib/cc/python/ISC/Util/hexdump.py (original)
+++ branches/f2f200910/src/lib/cc/python/ISC/Util/hexdump.py Thu Oct 29 00:51:37 2009
@@ -10,4 +10,4 @@
         printable = s.translate(_FILTER)
         item = "%08X   %-*s   %s\n" % (i, length * 3, hexa, printable)
         result.append(item[0:34] + ' ' + item[34:])
-    print ''.join(result)
+    print(''.join(result))




More information about the bind10-changes mailing list