]> granicus.if.org Git - python/commitdiff
Have os.environ() inherit from the iterable version of UserDict.
authorRaymond Hettinger <python@rcn.com>
Fri, 6 Sep 2002 19:36:31 +0000 (19:36 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 6 Sep 2002 19:36:31 +0000 (19:36 +0000)
Closes SF bug 605731.

Lib/os.py

index a2daba81b7fd863c8a7bbba3f4ba9f8a723c772a..40f9a4e2aad0b2dd350a506af703b22cad04bffe 100644 (file)
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -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