diff options
| author | 2015-03-14 11:07:54 +0100 | |
|---|---|---|
| committer | 2015-03-14 11:07:54 +0100 | |
| commit | e65d19ee3a1e435bf2896ed829e5581eeef92dd2 (patch) | |
| tree | cf5bb073899205a2f00ddeca8df8b9f3944ea835 /module/plugins/accounts/MegasharesCom.py | |
| parent | [HotFolder] Missing exception (diff) | |
| download | pyload-e65d19ee3a1e435bf2896ed829e5581eeef92dd2.tar.xz | |
Import cleanup for datetime and time modules
Diffstat (limited to 'module/plugins/accounts/MegasharesCom.py')
| -rw-r--r-- | module/plugins/accounts/MegasharesCom.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/module/plugins/accounts/MegasharesCom.py b/module/plugins/accounts/MegasharesCom.py index 127ebadc8..3d7ddbe46 100644 --- a/module/plugins/accounts/MegasharesCom.py +++ b/module/plugins/accounts/MegasharesCom.py @@ -1,7 +1,7 @@  # -*- coding: utf-8 -*-  import re -from time import mktime, strptime +import time  from module.plugins.Account import Account @@ -29,7 +29,7 @@ class MegasharesCom(Account):          try:              timestr = re.search(self.VALID_UNTIL_PATTERN, html).group(1)              self.logDebug(timestr) -            validuntil = mktime(strptime(timestr, "%b %d, %Y")) +            validuntil = time.mktime(time.strptime(timestr, "%b %d, %Y"))          except Exception, e:              self.logError(e) | 
