Commit be3ea832 authored by Shane Kerr's avatar Shane Kerr
Browse files

Python 3 fix-ups



git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@158 e5f2f494-b856-4b98-b285-d166d9295462
parent 1578a6ba
......@@ -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
......
......@@ -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))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment