Fix pep8 W602 "deprecated form of raising exception"

pull/1082/head
Lee Clemens 2015-06-25 16:22:22 -04:00
parent 3e3d1e0cf6
commit 2310ac44c7
1 changed files with 1 additions and 1 deletions

View File

@ -64,6 +64,6 @@ class CSocket:
while msg.rfind(CSocket.END_STRING) == -1:
chunk = sock.recv(6)
if chunk == '':
raise RuntimeError, "socket connection broken"
raise RuntimeError("socket connection broken")
msg = msg + chunk
return loads(msg)