Merge branch 'wrywerytwreywery-vt_prompt'

This commit is contained in:
Anthony Scopatz 2015-03-15 01:12:08 -05:00
commit 9cf2c9b26c
2 changed files with 3 additions and 2 deletions

View file

@ -54,6 +54,8 @@ class Env(MutableMapping):
return self._detyped
ctx = {}
for key, val in self._d.items():
if callable(val):
continue
if not isinstance(key, string_types):
key = str(key)
if 'PATH' in key:

View file

@ -181,7 +181,6 @@ class Shell(Cmd):
p = env['PROMPT']
if callable(p):
p = p()
else:
p = format_prompt(p)
else:
p = "set '$PROMPT = ...' $ "