N
N
NosferatuZodd2019-07-05 00:57:48
Python
NosferatuZodd, 2019-07-05 00:57:48

How to replace all print methods from python2 with print() function from python3 in Sublime Text?

In general, it all started with the fact that I wanted to run Wifite, famous among coolhackers, in Termux (Linux terminal emulator), but the fact is that python2 is not installed on termux, only version 3 which cannot run Wifite because it was written under version 2 of python, so I decided to go the other way and change the entire wifite.py file to version 3 of python, but I would like to do it quickly because there are just seas of such print methods. Yes, I'm a pervert, but still, I would like to know if there is a way to quickly do this in the Sublime Text text editor?
PS The difficulty lies in the fact that you need to not just replace print with print (), but do it so that all parameters are in brackets while

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
longclaps, 2019-07-05
@dolphin23

2to3.py

Y
YuriyCherniy, 2019-07-05
@YuriyCherniy

Python 3 differs from Python 2 in more than just print. So just don't port the program.

A
aGgYomfg, 2019-07-05
@aGgYomfg

Try to use python 3 version
https://github.com/derv82/wifite2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question