summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/OCR.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 09:42:49 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 09:42:49 +0200
commit952001324e1faf584b1adcb01c4a0406a3722932 (patch)
treeed87ade69e207e677d1144147b381bcd508ab25d /module/plugins/internal/OCR.py
parentAccount rewritten (2) (diff)
downloadpyload-952001324e1faf584b1adcb01c4a0406a3722932.tar.xz
Don't user dictionary’s iterator methods
Diffstat (limited to 'module/plugins/internal/OCR.py')
-rw-r--r--module/plugins/internal/OCR.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/OCR.py b/module/plugins/internal/OCR.py
index 36d259e0c..9896837b5 100644
--- a/module/plugins/internal/OCR.py
+++ b/module/plugins/internal/OCR.py
@@ -260,7 +260,7 @@ class OCR(Plugin):
hkey = 0
hvalue = 0
- for key, value in highest.iteritems():
+ for key, value in highest.items():
if value > hvalue:
hkey = key
hvalue = value
@@ -325,7 +325,7 @@ class OCR(Plugin):
else:
result = self.result_captcha
- for key, item in values.iteritems():
+ for key, item in values.items():
if key.__class__ is str:
result = result.replace(key, item)