Mailing List Archive

python/dist/src/Lib os.py,1.60,1.61
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv19931

Modified Files:
os.py
Log Message:
Have os.environ() inherit from the iterable version of UserDict.
Closes SF bug 605731.


Index: os.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/os.py,v
retrieving revision 1.60
retrieving revision 1.61
diff -C2 -d -r1.60 -r1.61
*** os.py 3 Sep 2002 16:36:17 -0000 1.60
--- os.py 6 Sep 2002 19:36:31 -0000 1.61
***************
*** 378,382 ****
elif name in ('os2', 'nt', 'dos'): # Where Env Var Names Must Be UPPERCASE
# But we store them as upper case
! class _Environ(UserDict.UserDict):
def __init__(self, environ):
UserDict.UserDict.__init__(self)
--- 378,382 ----
elif name in ('os2', 'nt', 'dos'): # Where Env Var Names Must Be UPPERCASE
# But we store them as upper case
! class _Environ(UserDict.IterableUserDict):
def __init__(self, environ):
UserDict.UserDict.__init__(self)