Browse Source

Python 3 fix-ups


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@158 e5f2f494-b856-4b98-b285-d166d9295462
Shane Kerr 15 years ago
parent
commit
be3ea8326d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/lib/cc/python/ISC/CC/session.py
  2. 1 1
      src/lib/cc/python/ISC/Util/hexdump.py

+ 1 - 1
src/lib/cc/python/ISC/CC/session.py

@@ -41,7 +41,7 @@ class Session:
             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

+ 1 - 1
src/lib/cc/python/ISC/Util/hexdump.py

@@ -10,4 +10,4 @@ def hexdump(src, length=16):
         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))