except socket.error, (errno, msg):
if errno == 1:
# Operation not permitted
msg = msg + (
" - Note that ICMP messages can only be sent from processes"
" running as root."
)
raise socket.error(msg)
Traceback (most recent call last):
File "", line 1, in File "/usr/lib/python3/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 699, in runfile execfile (filename, namespace) File "/usr/lib/python3/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 88, in execfile exec (compile (open (filename, 'rb'). read (), filename, 'exec'), namespace) File "/home/epamos/Downloads/Gping2(1).py", line 78 except socket.error, (errno, msg): ^ SyntaxError: invalid syntax
I'm using python 3.5, removing the comma triggers 7 errors involving GPing.