From: Zac Medico Date: Mon, 12 Apr 2010 06:20:07 +0000 (-0700) Subject: Remove unused imports. X-Git-Tag: v2.2_rc68~651 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a0d55a7bc4a0d595b01a4d11072f813870a58bf5;p=portage.git Remove unused imports. --- diff --git a/bin/repoman b/bin/repoman index 00a1fd50f..23fcd4da8 100755 --- a/bin/repoman +++ b/bin/repoman @@ -30,7 +30,7 @@ except ImportError: from urllib import urlopen as urllib_request_urlopen from itertools import chain -from stat import S_ISDIR, ST_CTIME +from stat import S_ISDIR if not hasattr(__builtins__, "set"): from sets import Set as set @@ -47,22 +47,11 @@ from portage import subprocess_getstatusoutput from portage import _encodings from portage import _unicode_encode from portage import StringIO - -try: - from repoman.checks import run_checks - from repoman import utilities - from repoman.herdbase import make_herd_base -except ImportError: - from os import path as osp - sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), 'pym')) - from repoman.checks import run_checks - from repoman import utilities - from repoman.herdbase import make_herd_base - +from repoman.checks import run_checks +from repoman import utilities +from repoman.herdbase import make_herd_base from _emerge.Package import Package from _emerge.RootConfig import RootConfig -from portage.sets import load_default_config - import portage.checksum import portage.const import portage.dep @@ -72,8 +61,8 @@ from portage import util from portage.exception import FileNotFound, ParseError, PermissionDenied from portage.manifest import Manifest from portage.process import find_binary, spawn -from portage.output import bold, create_color_func, darkgreen, \ - green, nocolor, red, turquoise, yellow +from portage.output import bold, create_color_func, \ + green, nocolor, red from portage.output import ConsoleStyleFile, StyleWriter from portage.util import cmp_sort_key, writemsg_level from portage.package.ebuild.digestgen import digestgen