Nmap Development mailing list archives

[Zenmap] not 2to3 safe (Python syntax)


From: Daniel Miller <bonsaiviking () gmail com>
Date: Thu, 30 May 2013 14:08:12 -0500

List,

Not a high-priority bug, but a user on IRC mentioned he was having problems running Zenmap. Turned out he was using Python 3, so the fix was easy. However, the thing that was breaking was some older syntax:

try:
    pass
except Exception, e:
    pass

This is just an example of several different syntax issues that could cause problems for someone who wants to convert Zenmap into a Python 3 program with the 2to3 tool. It could be a good project for someone who wants to get more experience with the Zenmap codebase to run it with `python -3`, which will complain about things that 2to3 cannot deal with.

Dan
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: