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/Plugin.py | |
parent | Account rewritten (2) (diff) | |
download | pyload-952001324e1faf584b1adcb01c4a0406a3722932.tar.xz |
Don't user dictionary’s iterator methods
Diffstat (limited to 'module/plugins/internal/Plugin.py')
-rw-r--r-- | module/plugins/internal/Plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py index 02ef326d6..7b3d03752 100644 --- a/module/plugins/internal/Plugin.py +++ b/module/plugins/internal/Plugin.py @@ -94,7 +94,7 @@ def parse_html_form(attr_str, html, input_names={}): if input_names: #: Check input attributes - for key, val in input_names.iteritems(): + for key, val in input_names.items(): if key in inputs: if isinstance(val, basestring) and inputs[key] is val: continue @@ -271,7 +271,7 @@ class Plugin(object): self.fail(_("No url given")) if self.pyload.debug: - self.log_debug("LOAD URL " + url, *["%s=%s" % (key, val) for key, val in locals().iteritems() if key not in ("self", "url")]) + self.log_debug("LOAD URL " + url, *["%s=%s" % (key, val) for key, val in locals().items() if key not in ("self", "url")]) if req is None: if hasattr(self, "req"): |