diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-25 09:42:49 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-25 09:42:49 +0200 |
commit | 952001324e1faf584b1adcb01c4a0406a3722932 (patch) | |
tree | ed87ade69e207e677d1144147b381bcd508ab25d /module/plugins/internal/Hoster.py | |
parent | Account rewritten (2) (diff) | |
download | pyload-952001324e1faf584b1adcb01c4a0406a3722932.tar.xz |
Don't user dictionary’s iterator methods
Diffstat (limited to 'module/plugins/internal/Hoster.py')
-rw-r--r-- | module/plugins/internal/Hoster.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py index 840d73847..10cab5616 100644 --- a/module/plugins/internal/Hoster.py +++ b/module/plugins/internal/Hoster.py @@ -362,7 +362,7 @@ class Hoster(Plugin): self.fail(_("No url given")) if self.pyload.debug: - self.log_debug("DOWNLOAD URL " + url, *["%s=%s" % (key, val) for key, val in locals().iteritems() if key not in ("self", "url")]) + self.log_debug("DOWNLOAD URL " + url, *["%s=%s" % (key, val) for key, val in locals().items() if key not in ("self", "url")]) self.captcha.correct() self.check_for_same_files() @@ -474,7 +474,7 @@ class Hoster(Plugin): #: Produces encoding errors, better log to other file in the future? # self.log_debug("Content: %s" % content) - for name, rule in rules.iteritems(): + for name, rule in rules.items(): if isinstance(rule, basestring): if rule in content: do_delete = True |