summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 7d21763..ccc11f4 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -450,6 +450,9 @@ else:
for key in self.data.keys():
unsetenv(key)
del self.data[key]
+ def pop(self, key, *args):
+ unsetenv(key)
+ return self.data.pop(key, *args)
def has_key(self, key):
return key.upper() in self.data
def __contains__(self, key):
@@ -511,6 +514,9 @@ else:
for key in self.data.keys():
unsetenv(key)
del self.data[key]
+ def pop(self, key, *args):
+ unsetenv(key)
+ return self.data.pop(key, *args)
def copy(self):
return dict(self)