more stuff

This commit is contained in:
Anthony Scopatz 2019-02-08 19:11:12 -05:00
parent 95d7946f97
commit 50101ce9a7

View file

@ -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: