diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-08-21 04:46:31 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-08-21 04:46:31 +0000 |
commit | 82f0c8c317c1d51a45589b708e476e7711a21da4 (patch) | |
tree | ace52bce4969f515901ca4fbde735071e3c28221 /pym/portage/process.py | |
parent | Fix typo. (diff) | |
download | portage-82f0c8c317c1d51a45589b708e476e7711a21da4.tar.gz portage-82f0c8c317c1d51a45589b708e476e7711a21da4.tar.bz2 portage-82f0c8c317c1d51a45589b708e476e7711a21da4.zip |
Replace _content_encoding, _fs_encoding, and _merge_encoding with direct
usage of _encodings.
svn path=/main/trunk/; revision=14113
Diffstat (limited to 'pym/portage/process.py')
-rw-r--r-- | pym/portage/process.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/process.py b/pym/portage/process.py index 1b5846883..1822a3082 100644 --- a/pym/portage/process.py +++ b/pym/portage/process.py @@ -10,7 +10,7 @@ import sys import traceback from portage import os -from portage import _content_encoding +from portage import _encodings from portage import _unicode_encode import portage portage.proxy.lazyimport.lazyimport(globals(), @@ -184,8 +184,8 @@ def spawn(mycommand, env={}, opt_name=None, fd_pipes=None, returnpid=False, # Avoid a potential UnicodeEncodeError from os.execve(). env_bytes = {} for k, v in env.iteritems(): - env_bytes[_unicode_encode(k, encoding=_content_encoding)] = \ - _unicode_encode(v, encoding=_content_encoding) + env_bytes[_unicode_encode(k, encoding=_encodings['content'])] = \ + _unicode_encode(v, encoding=_encodings['content']) env = env_bytes del env_bytes |