Repository :
http://git.fedorahosted.org/cgit/
On branch : v1.4
---------------------------------------------------------------
commit f4c85f72c9373478ff5fbc8c6406a737032c5924
Author: Matt Domsch <Matt_Domsch(a)dell.com>
Date: Wed Jul 3 00:05:56 2013 -0500
remove set-but-unused variables
---------------------------------------------------------------
server/mirrormanager/controllers.py | 3 +--
server/mirrormanager/model.py | 1 -
2 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/server/mirrormanager/controllers.py b/server/mirrormanager/controllers.py
index f7cbbb5..3a8feb1 100644
--- a/server/mirrormanager/controllers.py
+++ b/server/mirrormanager/controllers.py
@@ -494,7 +494,6 @@ class HostCategoryController(controllers.Controller,
identity.SecureResource, co
def read(self, hostcategory):
downstream_siteadmin_check(hostcategory.my_site(), identity)
submit_action = "/host_category/%s/update" % hostcategory.id
- disabled_fields=self.disabled_fields()
return dict(form=host_category_form_read, values=hostcategory,
action=submit_action, disabled_fields=self.disabled_fields(), host=hostcategory.host)
@expose(template="kid:mirrormanager.templates.hostcategory")
@@ -599,7 +598,7 @@ class HostListitemController(controllers.Controller,
identity.SecureResource, co
except InvalidData, msg:
turbogears.flash(msg)
raise turbogears.redirect("/host/%s" % host.id)
- except Exception, e: # probably sqlite IntegrityError but we can't catch that
for some reason...
+ except Exception: # probably sqlite IntegrityError but we can't catch that
for some reason...
etype, value, tb = sys.exc_info()
s = traceback.format_exception(etype, value, tb)
lines = ''
diff --git a/server/mirrormanager/model.py b/server/mirrormanager/model.py
index 666ff14..54a23fc 100644
--- a/server/mirrormanager/model.py
+++ b/server/mirrormanager/model.py
@@ -764,7 +764,6 @@ class Directory(SQLObject):
t = int(time.time())
max_stale = config.get('mirrormanager.max_stale_days', 3)
max_propogation = config.get('mirrormanager.max_propogation_days', 2)
- fd = {}
stale = t - (60*60*24*max_stale)
propogation = t - (60*60*24*max_propogation)