Closed michaelmcmillan closed 3 years ago
I'm not involved with the project in any way but just some thoughts as I read this. First, all of the py2.6 compatibility code can be removed if you want to go straight python3 - the effect now is to run different code on python 3.6 or higher. You have also left some variables called xxx_todo_changeme
in there. And finally if this code was merged as-is it would break python2 support, which is one of the reasons I use this.
I have done this now.
Considering Python 2.7 is no longer supported I have ported this project to Python 3. We want to use this port scanner on Azure Runbooks, and they do not support similar tools such as nmap.
I used the built-in 2to3 and reindent tool in Python to carry out the port.
Test that it worked under Python 3: