summaryrefslogtreecommitdiff
path: root/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-12-11 19:52:27 -0600
committerDan McGee <dan@archlinux.org>2011-12-11 19:52:27 -0600
commita60801bb7dbc18080e7f6106bcf9c707d2801c9d (patch)
tree12ba0f77316bbb87c1d15dc7d7d91a08fd85ed87 /mirrors
parente65d2bc6db279240a03fece91e5332f8602859dc (diff)
PyLint suggested cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors')
-rw-r--r--mirrors/templatetags/mirror_status.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mirrors/templatetags/mirror_status.py b/mirrors/templatetags/mirror_status.py
index 0031d83b..9a363fbe 100644
--- a/mirrors/templatetags/mirror_status.py
+++ b/mirrors/templatetags/mirror_status.py
@@ -10,7 +10,7 @@ def duration(value):
return u''
# does not take microseconds into account
total_secs = value.seconds + value.days * 24 * 3600
- mins, secs = divmod(total_secs, 60)
+ mins = total_secs // 60
hrs, mins = divmod(mins, 60)
return '%d:%02d' % (hrs, mins)
@@ -20,7 +20,7 @@ def hours(value):
return u''
# does not take microseconds into account
total_secs = value.seconds + value.days * 24 * 3600
- mins, secs = divmod(total_secs, 60)
+ mins = total_secs // 60
hrs, mins = divmod(mins, 60)
if hrs == 1:
return '%d hour' % hrs