From e303e53a8d066aa29c556cb49cf35dc1f49d1b3b Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sat, 26 Feb 2011 17:34:04 +0000 Subject: [PATCH] Fixed Pyflakes warnings --- zeroinstall/injector/background.py | 2 +- zeroinstall/injector/gpg.py | 2 +- zeroinstall/injector/handler.py | 2 +- zeroinstall/injector/policy.py | 2 +- zeroinstall/injector/selections.py | 1 + zeroinstall/injector/solver.py | 4 +--- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/zeroinstall/injector/background.py b/zeroinstall/injector/background.py index 1175dc0..2fabaa7 100644 --- a/zeroinstall/injector/background.py +++ b/zeroinstall/injector/background.py @@ -115,7 +115,7 @@ class BackgroundHandler(handler.Handler): LOW = 0 NORMAL = 1 - CRITICAL = 2 + #CRITICAL = 2 import dbus.types diff --git a/zeroinstall/injector/gpg.py b/zeroinstall/injector/gpg.py index 364cb22..8d7eeae 100644 --- a/zeroinstall/injector/gpg.py +++ b/zeroinstall/injector/gpg.py @@ -315,7 +315,7 @@ def _get_sigs_from_gpg_status_stream(status_r, child, errors): elif code == 'ERRSIG': sigs.append(ErrSig(args)) - status = child.wait() + child.wait() # (ignore exit status) errors.seek(0) diff --git a/zeroinstall/injector/handler.py b/zeroinstall/injector/handler.py index 802aef7..3170496 100644 --- a/zeroinstall/injector/handler.py +++ b/zeroinstall/injector/handler.py @@ -12,7 +12,7 @@ To do this, you supply a L{Handler} to the L{policy}. from zeroinstall import _ import sys -from logging import debug, warn, info +from logging import warn, info from zeroinstall import NeedDownload, SafeException from zeroinstall.support import tasks diff --git a/zeroinstall/injector/policy.py b/zeroinstall/injector/policy.py index d84bd89..f14562a 100644 --- a/zeroinstall/injector/policy.py +++ b/zeroinstall/injector/policy.py @@ -15,7 +15,7 @@ import ConfigParser from zeroinstall import zerostore, SafeException from zeroinstall.injector import arch, model -from zeroinstall.injector.model import Interface, Implementation, network_levels, network_offline, DistributionImplementation, network_full +from zeroinstall.injector.model import Interface, Implementation, network_levels, network_offline, network_full from zeroinstall.injector.handler import Handler from zeroinstall.injector.namespaces import config_site, config_prog from zeroinstall.support import tasks, basedir diff --git a/zeroinstall/injector/selections.py b/zeroinstall/injector/selections.py index 81836a8..0dfd4a9 100644 --- a/zeroinstall/injector/selections.py +++ b/zeroinstall/injector/selections.py @@ -6,6 +6,7 @@ Load and save a set of chosen implementations. # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. +import os from zeroinstall import _ from zeroinstall.injector import model from zeroinstall.injector.policy import Policy, get_deprecated_singleton_config diff --git a/zeroinstall/injector/solver.py b/zeroinstall/injector/solver.py index 21750f9..dccb097 100644 --- a/zeroinstall/injector/solver.py +++ b/zeroinstall/injector/solver.py @@ -6,11 +6,9 @@ Chooses a set of components to make a running program. # See the README file for details, or visit http://0install.net. from zeroinstall import _ -import os, locale +import locale from logging import debug, warn, info -from zeroinstall.zerostore import BadDigest, NotStored - from zeroinstall.injector.arch import machine_groups from zeroinstall.injector import model, sat, selections -- 2.11.4.GIT