summaryrefslogtreecommitdiffstats
path: root/module/plugins/captcha/CircleCaptcha.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/captcha/CircleCaptcha.py')
-rw-r--r--module/plugins/captcha/CircleCaptcha.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/module/plugins/captcha/CircleCaptcha.py b/module/plugins/captcha/CircleCaptcha.py
index dc04a04c8..72d294caf 100644
--- a/module/plugins/captcha/CircleCaptcha.py
+++ b/module/plugins/captcha/CircleCaptcha.py
@@ -474,15 +474,15 @@ class CircleCaptcha(OCR):
#: Assial Simmetric
if self.pyload.debug:
- self.log_debug("Center: " + str(c),
- "Missing: " + str(missing),
- "Howmany: " + str(howmany),
- "Ratio: " + str(missing / howmany),
- "Missing consecutives: " + str(missingconsecutive),
- "Missing X lenght: " + str(minX) + ":" + str(maxX),
- "Missing Y lenght: " + str(minY) + ":" + str(maxY),
- "Ratio without consecutives: " + str((missing - missingconsecutive) / howmany),
- "List missing: " + str(missinglist))
+ self.log_debug("Center: %s" % c,
+ "Missing: %s" % missing,
+ "Howmany: %s" % howmany,
+ "Ratio: %s" % (missing / howmany),
+ "Missing consecutives: %s" % missingconsecutive,
+ "Missing X lenght: %s:%s" % (minX, maxX),
+ "Missing Y lenght: %s:%s" % (minY, maxY),
+ "Ratio without consecutives: %s" % ((missing - missingconsecutive) / howmany),
+ "List missing: %s" % missinglist)
#: Lenght of missing cannot be over 75% of diameter
@@ -711,7 +711,7 @@ class CircleCaptcha(OCR):
break
if self.pyload.debug:
- self.log_debug('Howmany opened circle? ' + str(len(found)) + ' ' + str(found))
+ self.log_debug("Howmany opened circle?", found)
#: Clean results
for c in found: