From efcbaeac3b60cb34080013d517ba52006d8a7865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Mon, 14 May 2007 00:04:32 +0000 Subject: [PATCH] /usr/lib/pardus/pisi/sourcedb.py:58: Local variable (e) not used /usr/lib/pardus/pisi/sourcedb.py:64: Local variable (e) not used sourcedb.py:23: Imported module (os) not used sourcedb.py:24: Imported module (fcntl) not used sourcedb.py:30: Imported module (pisi.util) not used sourcedb.py:32: Imported module (pisi.lockeddbshelve) not used --- pisi/sourcedb.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pisi/sourcedb.py b/pisi/sourcedb.py index 593fb5ae..3c6e1fcf 100644 --- a/pisi/sourcedb.py +++ b/pisi/sourcedb.py @@ -20,16 +20,11 @@ store a set of repositories in which the source appears. the actual guy to take is determined from the repo order. """ -import os -import fcntl - import gettext __trans = gettext.translation('pisi', fallback=True) _ = __trans.ugettext -import pisi.util as util import pisi.context as ctx -import pisi.lockeddbshelve as shelve import pisi.repodb import pisi.itembyrepodb @@ -55,13 +50,13 @@ class SourceDB(object): def get_spec(self, name, repo=None, txn = None): try: return self.d.get_item(name, repo, txn) - except pisi.itembyrepodb.NotfoundError, e: + except pisi.itembyrepodb.NotfoundError: raise NotfoundError(_("Source package %s not found") % name) def get_spec_repo(self, name, repo=None, txn = None): try: return self.d.get_item_repo(name, repo, txn) - except pisi.itembyrepodb.NotfoundError, e: + except pisi.itembyrepodb.NotfoundError: raise NotfoundError(_("Source package %s not found") % name) def pkgtosrc(self, name, txn = None):