Kaydet (Commit) 61de0ac4 authored tarafından Guido van Rossum's avatar Guido van Rossum

Reindented according to new standard, without tabs.

Also added one more os2 specific piece of code, by Jeff Rush.
üst 63cf3960
......@@ -158,6 +158,20 @@ except NameError:
else:
import UserDict
if name in ('os2', ): # Where Env Var Names Must Be UPPERCASE
import string
class _Environ(UserDict.UserDict):
def __init__(self, environ):
UserDict.UserDict.__init__(self)
self.data = environ
def __setitem__(self, key, item):
key = string.upper(key)
putenv(key, item)
self.data[key] = item
def __getitem__(self, key):
return self.data[string.upper(key)]
else: # Where Env Var Names Can Be Mixed Case
class _Environ(UserDict.UserDict):
def __init__(self, environ):
UserDict.UserDict.__init__(self)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment