mirror of https://github.com/python/cpython
Have os.environ() inherit from the iterable version of UserDict.
Closes SF bug 605731.
This commit is contained in:
parent
44c42b9cf3
commit
ca2f537e32
|
@ -377,7 +377,7 @@ else:
|
|||
from riscosenviron import _Environ
|
||||
elif name in ('os2', 'nt', 'dos'): # Where Env Var Names Must Be UPPERCASE
|
||||
# But we store them as upper case
|
||||
class _Environ(UserDict.UserDict):
|
||||
class _Environ(UserDict.IterableUserDict):
|
||||
def __init__(self, environ):
|
||||
UserDict.UserDict.__init__(self)
|
||||
data = self.data
|
||||
|
|
Loading…
Reference in New Issue