fixed docmentation for pyeval

This commit is contained in:
akhilkpdasan 2017-11-19 19:08:52 +05:30 committed by GitHub
parent c5eab53a87
commit ba6d90aa7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,13 +234,12 @@ def debug_pyeval(s, file=False, quiet=False):
Args:
s: The string to evaluate.
file: Interpret s as a path to file.
file: Interpret s as a path to file also implies --quiete.
quiet: Don't show the output in a new tab.
"""
if file:
quiet = True
path = os.path.expanduser(s)
message.info(path)
try:
with open(path, 'r', encoding='utf-8') as f:
s = f.read()