There was an error while loading. Please reload this page.
1 parent 39193be commit d13030bCopy full SHA for d13030b
1 file changed
Lib/os.py
@@ -722,7 +722,7 @@ def get_exec_path(env=None):
722
723
# Sentinel used for seeing if a value is found within the internal _Environ
724
# dictionary.
725
-_environ_missing = object()
+_MISSING = sentinel("MISSING")
726
727
728
class _Environ(MutableMapping):
@@ -779,8 +779,8 @@ def copy(self):
779
return dict(self)
780
781
def get(self, key, default = None):
782
- val = self._data.get(self.encodekey(key), _environ_missing)
783
- return default if val is _environ_missing else self.decodevalue(val)
+ val = self._data.get(self.encodekey(key), _MISSING)
+ return default if val is _MISSING else self.decodevalue(val)
784
785
def setdefault(self, key, value):
786
if key not in self:
0 commit comments