Support for Python3
That was fun.
This commit is contained in:
17
wifite/util/input.py
Normal file
17
wifite/util/input.py
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/python2.7
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Fix for raw_input on python3: https://stackoverflow.com/a/7321970
|
||||
try:
|
||||
input = raw_input
|
||||
except NameError:
|
||||
pass
|
||||
|
||||
raw_input = input
|
||||
|
||||
try:
|
||||
range = xrange
|
||||
except NameError:
|
||||
pass
|
||||
|
||||
xrange = range
|
||||
Reference in New Issue
Block a user