commit c73141415de27ba59e5035366f9cfe42c20d7bac
parent 487bebc466db2492983307361a16d842ccc2c896
Author: parazyd <parazyd@dyne.org>
Date: Mon, 4 Dec 2017 17:34:07 +0100
style fixes
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/parse.py b/lib/parse.py
@@ -4,7 +4,7 @@
Parsing functions/helpers
"""
-import time
+from time import mktime, strptime
def get_time(date):
@@ -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):