diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-08-11 08:32:14 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-08-11 08:32:14 +0000 |
commit | 4f464c6cb06493b49e8475a09d3d9815c97a7d96 (patch) | |
tree | 518210f51cba0c7234e108663a1de717ac59feaf /pym/_emerge/actions.py | |
parent | f1131534819bcd66c34b738be2e9e57d901c40d4 (diff) | |
download | portage-4f464c6cb06493b49e8475a09d3d9815c97a7d96.tar.gz portage-4f464c6cb06493b49e8475a09d3d9815c97a7d96.tar.bz2 portage-4f464c6cb06493b49e8475a09d3d9815c97a7d96.zip |
Update imports to import portage.os (with unicode wrappers), and use
_unicode_encode() and _unicode_decode() where appropriate.
svn path=/main/trunk/; revision=13995
Diffstat (limited to 'pym/_emerge/actions.py')
-rw-r--r-- | pym/_emerge/actions.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 5bd789c1f..25c82323e 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -5,7 +5,6 @@ import commands import errno import logging -import os import platform import pwd import re @@ -17,13 +16,8 @@ import textwrap import time from itertools import chain, izip -try: - import portage -except ImportError: - from os import path as osp - sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym")) - import portage - +import portage +from portage import os from portage import digraph from portage.cache.cache_errors import CacheError from portage.const import NEWS_LIB_PATH |