tstyle fixes - amprolla - devuan's apt repo merger HTML git clone git://parazyd.org/amprolla.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit c73141415de27ba59e5035366f9cfe42c20d7bac DIR parent 487bebc466db2492983307361a16d842ccc2c896 HTML Author: parazyd <parazyd@dyne.org> Date: Mon, 4 Dec 2017 17:34:07 +0100 style fixes Diffstat: M lib/parse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/lib/parse.py b/lib/parse.py t@@ -4,7 +4,7 @@ Parsing functions/helpers """ -import time +from time import mktime, strptime def get_time(date): t@@ -14,7 +14,7 @@ def get_time(date): if not date: # hardcode if something's amiss date = 'Sun, 29 Oct 2017 10:00:00 +0200' - return time.mktime(time.strptime(date, "%a, %d %b %Y %H:%M:%S %Z")) + return mktime(strptime(date, "%a, %d %b %Y %H:%M:%S %Z")) def get_date(relfile):