mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
more stuff
This commit is contained in:
parent
95d7946f97
commit
50101ce9a7
1 changed files with 1 additions and 8 deletions
|
@ -1306,7 +1306,7 @@ class Env(cabc.MutableMapping):
|
||||||
return self._detyped
|
return self._detyped
|
||||||
ctx = {}
|
ctx = {}
|
||||||
for key, val in self._d.items():
|
for key, val in self._d.items():
|
||||||
if not self.detypeable(val):
|
if key not in self._ensurers and not self.detypeable(val):
|
||||||
continue
|
continue
|
||||||
if not isinstance(key, str):
|
if not isinstance(key, str):
|
||||||
key = str(key)
|
key = str(key)
|
||||||
|
@ -1416,13 +1416,6 @@ class Env(cabc.MutableMapping):
|
||||||
|
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
# remove this block on next release
|
# remove this block on next release
|
||||||
if key == "FORMATTER_DICT":
|
|
||||||
print(
|
|
||||||
"PendingDeprecationWarning: FORMATTER_DICT is an alias of "
|
|
||||||
"PROMPT_FIELDS and will be removed in the next release",
|
|
||||||
file=sys.stderr,
|
|
||||||
)
|
|
||||||
return self["PROMPT_FIELDS"]
|
|
||||||
if key is Ellipsis:
|
if key is Ellipsis:
|
||||||
return self
|
return self
|
||||||
elif key in self._d:
|
elif key in self._d:
|
||||||
|
|
Loading…
Add table
Reference in a new issue