]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Have os.environ inherit from the iterable version of UserDict.
authorRaymond Hettinger <python@rcn.com>
Fri, 6 Sep 2002 19:35:22 +0000 (19:35 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 6 Sep 2002 19:35:22 +0000 (19:35 +0000)
Closes SF bug 605731.

Lib/os.py

index b9969c708f90073d3a3134fcb7d39ebd767ef05a..a89c471fc60fee30e4fc9000412ad19fa6ac5012 100644 (file)
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -366,7 +366,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