diff --git a/pisi/api.py b/pisi/api.py index ebabf73c..b3c19843 100644 --- a/pisi/api.py +++ b/pisi/api.py @@ -780,7 +780,6 @@ def build(*args, **kw): def clearCache(all=False): import glob - from sets import Set as set def getPackageLists(pkgList): latest = {} diff --git a/pisi/cli/check.py b/pisi/cli/check.py index f88c7048..958b0c22 100644 --- a/pisi/cli/check.py +++ b/pisi/cli/check.py @@ -57,7 +57,6 @@ If no packages are given, checks all installed packages. component = ctx.get_option('component') if component: #FIXME: pisi api is insufficient to do this - from sets import Set as set installed = pisi.api.list_installed() component_pkgs = self.componentdb.get_union_packages(component, walk=True) pkgs = list(set(installed) & set(component_pkgs)) diff --git a/pisi/cli/listinstalled.py b/pisi/cli/listinstalled.py index 0d2c52e0..0288ee5f 100644 --- a/pisi/cli/listinstalled.py +++ b/pisi/cli/listinstalled.py @@ -62,7 +62,6 @@ Usage: list-installed component = ctx.get_option('component') if component: #FIXME: pisi api is insufficient to do this - from sets import Set as set component_pkgs = self.componentdb.get_union_packages(component, walk=True) installed = list(set(installed) & set(component_pkgs)) diff --git a/pisi/cli/listupgrades.py b/pisi/cli/listupgrades.py index 753cd519..c844955f 100644 --- a/pisi/cli/listupgrades.py +++ b/pisi/cli/listupgrades.py @@ -59,7 +59,6 @@ Lists the packages that will be upgraded. component = ctx.get_option('component') if component: #FIXME: PiSi api is insufficient to do this - from sets import Set as set component_pkgs = self.componentdb.get_union_packages(component, walk=True) upgradable_pkgs = list(set(upgradable_pkgs) & set(component_pkgs)) diff --git a/pisi/operations/delta.py b/pisi/operations/delta.py index d705de2a..c6dc98e4 100644 --- a/pisi/operations/delta.py +++ b/pisi/operations/delta.py @@ -10,7 +10,6 @@ # Please read the COPYING file. import os -import sets import gettext __trans = gettext.translation("pisi", fallback=True) @@ -105,8 +104,8 @@ def find_delta(oldfiles, newfiles): for f in newfiles.list: hashto_files.setdefault(f.hash, []).append(f) - files_new = sets.Set(map(lambda x:x.hash, newfiles.list)) - files_old = sets.Set(map(lambda x:x.hash, oldfiles.list)) + files_new = set(map(lambda x:x.hash, newfiles.list)) + files_old = set(map(lambda x:x.hash, oldfiles.list)) files_delta = files_new - files_old deltas = []