From 952001324e1faf584b1adcb01c4a0406a3722932 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 25 Jul 2015 09:42:49 +0200 Subject: =?UTF-8?q?Don't=20user=20dictionary=E2=80=99s=20iterator=20method?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/plugins/internal/OCR.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/internal/OCR.py') 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) -- cgit v1.2.3