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/search.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/search.py')
-rw-r--r-- | pym/_emerge/search.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/pym/_emerge/search.py b/pym/_emerge/search.py index afbd1d557..1f276b47e 100644 --- a/pym/_emerge/search.py +++ b/pym/_emerge/search.py @@ -2,18 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -import os import re from itertools import izip - -try: - import portage -except ImportError: - from os import path as osp - import sys - sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym")) - import portage - +import portage +from portage import os from portage.output import bold, bold as white, darkgreen, green, red from portage.util import writemsg_stdout |