diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-02-21 16:46:58 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-02-22 02:51:10 +0100 |
commit | 949427c208159f4ac580f547dd5465a70b4751b7 (patch) | |
tree | e9eef7d495b04516e6161ab9528f964a8d872cd2 /wintest | |
parent | 01047e0ba8256ff12345222517a905fd9d66a8b5 (diff) | |
download | samba-949427c208159f4ac580f547dd5465a70b4751b7.tar.gz samba-949427c208159f4ac580f547dd5465a70b4751b7.tar.bz2 samba-949427c208159f4ac580f547dd5465a70b4751b7.zip |
python: use os.environ[] instead of os.putenv()
using os.putenv() causes too much confusion, as it doesn't update
os.getenv()
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'wintest')
-rw-r--r-- | wintest/wintest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wintest/wintest.py b/wintest/wintest.py index 189d251ada..d10d0ad2ff 100644 --- a/wintest/wintest.py +++ b/wintest/wintest.py @@ -13,7 +13,7 @@ class wintest(): self.vars = {} self.list_mode = False self.vms = None - os.putenv('PYTHONUNBUFFERED', '1') + os.environ['PYTHONUNBUFFERED'] = '1' self.parser = optparse.OptionParser("wintest") def check_prerequesites(self): @@ -142,7 +142,7 @@ class wintest(): def putenv(self, key, value): '''putenv with substitution''' - os.putenv(key, self.substitute(value)) + os.environ[key] = self.substitute(value) def chdir(self, dir): '''chdir with substitution''' |