Reem Aljunaid Reem Aljunaid - 7 months ago 19
Python Question

Converting code from python 2 to python 3

I want to use this tool (GoldenEye) but it has more than 20 syntax errors, I have no idea about python but after searching it seems that the problem in the different versions of python, each has different syntax.

I want to convert this entire code to fully python 3

https://onedrive.live.com/redir?resid=6E75594B3DCB6E8!1233&authkey=!AMIeALa7x704Orc&ithint=file%2cpy

Answer

2to3 will automatically convert Python 2 code into Python 3 code (documentation here). Also consider simply installing and using Python 2 for this, if feasible for your project.