MCPcopy Index your code
hub / github.com/pyload/pyload / decrypt_from_web

Method decrypt_from_web

module/plugins/captcha/CircleCaptcha.py:757–761  ·  view source on GitHub ↗
(self, url)

Source from the content-addressed store, hash-verified

755
756 #: Return coordinates of opened circle (eg (x, y))
757 def decrypt_from_web(self, url):
758 file = cStringIO.StringIO(urllib.urlopen(url).read())
759 img = Image.open(file)
760 coords = self.decrypt(img)
761 self.log_info(_("Coords: %s") % coords)
762
763 #: Return coordinates of opened circle (eg (x, y))
764 def decrypt_from_file(self, filename):

Callers

nothing calls this directly

Calls 5

decryptMethod · 0.95
log_infoMethod · 0.80
_Function · 0.50
readMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected