fixed input problem at python3
@@ -19,8 +19,8 @@ __author__ = "rcmdnk"
__copyright__ = "Copyright (c) 2013 rcmdnk"
__credits__ = ["rcmdnk"]
__license__ = "MIT"
-__version__ = "v4.1.7"
-__date__ = "21/Dec/2016"
+__version__ = "v4.1.8"
+__date__ = "7/Feb/2017"
__maintainer__ = "rcmdnk"
__email__ = "rcmdnk@gmail.com"
__status__ = "Prototype"
@@ -50,13 +50,14 @@ def my_input(word): # pragma: no cover
global is_python3
if is_python3 == -1:
try:
- input = raw_input
+ _input = raw_input
is_python3 = 0
except:
+ _input = input
is_python3 = 1
elif is_python3 == 0:
- input = raw_input
- return input(word)
+ _input = raw_input
+ return _input(word)
def open_output_file(name, mode="w"):
