From a0d55a7bc4a0d595b01a4d11072f813870a58bf5 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 11 Apr 2010 23:20:07 -0700 Subject: [PATCH] Remove unused imports. --- bin/repoman | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) 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 -- 2.26.2