2to3 contrib/helpers

This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-28 03:18:28 +02:00
parent 0c58628c3b
commit cbc7ac6385

View File

@ -33,9 +33,9 @@ def goTo(path):
chdir(path) chdir(path)
return True return True
except FileNotFoundError: except FileNotFoundError:
print("Could not find the '{}' directory in '{}'...".format( print(("Could not find the '{}' directory in '{}'...".format(
path, getcwd()) path, getcwd())
) ))
return False return False
@ -215,7 +215,7 @@ class User(object):
@staticmethod @staticmethod
def request(msg, prompt='--> '): def request(msg, prompt='--> '):
print(msg) print(msg)
return input(prompt) return eval(input(prompt))
@staticmethod @staticmethod
def pause(msg=False): def pause(msg=False):