From f6594305310080b02a39f6abf0263790ccecd42a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 19 Sep 2008 21:41:23 +0000 Subject: Define __all__ and clean up unused imports found by pyflakes. svn path=/main/trunk/; revision=11519 --- pym/portage/dbapi/porttree.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 614f6dec3..a1165907c 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -2,27 +2,27 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +__all__ = ["portdbapi", "close_portdbapi_caches", "portagetree"] + from portage.cache.cache_errors import CacheError from portage.cache.mappings import slot_dict_class from portage.const import REPO_NAME_LOC from portage.data import portage_gid, secpass from portage.dbapi import dbapi -from portage.dep import use_reduce, paren_reduce, dep_getslot, dep_getkey, \ - match_from_list, match_to_list, remove_slot -from portage.exception import OperationNotPermitted, PortageException, \ +from portage.dep import use_reduce, paren_reduce, dep_getkey, match_from_list +from portage.exception import PortageException, \ UntrustedSignature, SecurityViolation, InvalidSignature, MissingSignature, \ FileNotFound, InvalidDependString, InvalidPackageName from portage.manifest import Manifest -from portage.output import red -from portage.util import ensure_dirs, writemsg, apply_recursive_permissions -from portage.versions import pkgcmp, pkgsplit, catpkgsplit, best, ver_regexp +from portage.util import ensure_dirs, writemsg +from portage.versions import pkgsplit, catpkgsplit, best, ver_regexp import portage.gpg, portage.checksum -from portage import eclass_cache, auxdbkeys, auxdbkeylen, doebuild, flatten, \ +from portage import eclass_cache, auxdbkeys, doebuild, flatten, \ listdir, dep_expand, eapi_is_supported, key_expand, dep_check -import os, re, stat, sys +import os, stat from itertools import izip class portdbapi(dbapi): -- cgit v1.2.3-1-g7c22