summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/Keep2ShareCc.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-14 11:07:54 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-14 11:07:54 +0100
commite65d19ee3a1e435bf2896ed829e5581eeef92dd2 (patch)
treecf5bb073899205a2f00ddeca8df8b9f3944ea835 /module/plugins/accounts/Keep2ShareCc.py
parent[HotFolder] Missing exception (diff)
downloadpyload-e65d19ee3a1e435bf2896ed829e5581eeef92dd2.tar.xz
Import cleanup for datetime and time modules
Diffstat (limited to 'module/plugins/accounts/Keep2ShareCc.py')
-rw-r--r--module/plugins/accounts/Keep2ShareCc.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/accounts/Keep2ShareCc.py b/module/plugins/accounts/Keep2ShareCc.py
index 9f28799a2..d2ba1d237 100644
--- a/module/plugins/accounts/Keep2ShareCc.py
+++ b/module/plugins/accounts/Keep2ShareCc.py
@@ -1,8 +1,7 @@
# -*- coding: utf-8 -*-
import re
-
-from time import gmtime, mktime, strptime
+import time
from module.plugins.Account import Account
@@ -41,13 +40,13 @@ class Keep2ShareCc(Account):
validuntil = -1
else:
try:
- validuntil = mktime(strptime(expiredate, "%Y.%m.%d"))
+ validuntil = time.mktime(time.strptime(expiredate, "%Y.%m.%d"))
except Exception, e:
self.logError(e)
else:
- premium = True if validuntil > mktime(gmtime()) else False
+ premium = True if validuntil > time.mktime(time.gmtime()) else False
m = re.search(self.TRAFFIC_LEFT_PATTERN, html)
if m: