diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-04 10:52:31 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-04 10:52:31 +0200 |
commit | e2d4a21008fe1f44ca4d27abf2c18a85dda5df4a (patch) | |
tree | 71804983f54ad59baee2f1a0def78eb8e178e0e4 /module/plugins/accounts | |
parent | new l18n files (diff) | |
download | pyload-e2d4a21008fe1f44ca4d27abf2c18a85dda5df4a.tar.xz |
plugin cleanups
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/FileserveCom.py | 6 | ||||
-rw-r--r-- | module/plugins/accounts/FilesonicCom.py | 7 | ||||
-rw-r--r-- | module/plugins/accounts/WuploadCom.py | 6 |
3 files changed, 3 insertions, 16 deletions
diff --git a/module/plugins/accounts/FileserveCom.py b/module/plugins/accounts/FileserveCom.py index 316c2446e..5e5068f22 100644 --- a/module/plugins/accounts/FileserveCom.py +++ b/module/plugins/accounts/FileserveCom.py @@ -20,11 +20,7 @@ from time import mktime, strptime from module.plugins.Account import Account - -try: - from json import loads as json_loads -except ImportError: - from module.lib.simplejson import loads as json_loads +from module.common.json_layer import json_loads class FileserveCom(Account): __name__ = "FileserveCom" diff --git a/module/plugins/accounts/FilesonicCom.py b/module/plugins/accounts/FilesonicCom.py index ff4e066e2..1207f1b56 100644 --- a/module/plugins/accounts/FilesonicCom.py +++ b/module/plugins/accounts/FilesonicCom.py @@ -17,15 +17,10 @@ @author: RaNaN """ -import re from time import mktime, strptime from module.plugins.Account import Account - -try: - from json import loads as json_loads -except ImportError: # pragma: no cover - from module.lib.simplejson import loads as json_loads +from module.common.json_layer import json_loads class FilesonicCom(Account): __name__ = "FilesonicCom" diff --git a/module/plugins/accounts/WuploadCom.py b/module/plugins/accounts/WuploadCom.py index c6710a657..b3d73df27 100644 --- a/module/plugins/accounts/WuploadCom.py +++ b/module/plugins/accounts/WuploadCom.py @@ -20,11 +20,7 @@ from types import MethodType from module.plugins.Account import Account - -try: - from json import loads as json_loads -except ImportError: # pragma: no cover - from module.lib.simplejson import loads as json_loads +from module.common.json_layer import json_loads class WuploadCom(Account): __name__ = "WuploadCom" |