Mailing List Archive

python/dist/src/Lib os.py,1.50.8.4,1.50.8.5
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv19480

Modified Files:
Tag: release22-maint
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.50.8.4
retrieving revision 1.50.8.5
diff -C2 -d -r1.50.8.4 -r1.50.8.5
*** os.py 3 Sep 2002 16:36:59 -0000 1.50.8.4
--- os.py 6 Sep 2002 19:35:22 -0000 1.50.8.5
***************
*** 367,371 ****
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)
--- 367,371 ----
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)