Skip to content

Commit 67cc140

Browse files
committed
Account for key encoding
1 parent 7248570 commit 67cc140

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/os.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,9 @@ def __repr__(self):
745745
def clear(self):
746746
while self._data:
747747
for key in list(self._data):
748+
unsetenv(key)
748749
try:
749-
del self[key]
750+
del self._data[key]
750751
except KeyError:
751752
pass
752753

0 commit comments

Comments
 (0)