From: Raymond Hettinger Date: Fri, 6 Sep 2002 19:36:31 +0000 (+0000) Subject: Have os.environ() inherit from the iterable version of UserDict. X-Git-Tag: v2.3c1~4194 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca2f537e32e806b02b20a8ad8c976810bfac754d;p=thirdparty%2FPython%2Fcpython.git Have os.environ() inherit from the iterable version of UserDict. Closes SF bug 605731. --- diff --git a/Lib/os.py b/Lib/os.py index a2daba81b7fd..40f9a4e2aad0 100644 --- 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