2to3 contrib/helpers
This commit is contained in:
parent
0c58628c3b
commit
cbc7ac6385
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user