afelipe270891 / recaptcha

Automatically exported from code.google.com/p/recaptcha
0 stars 0 forks source link

PYthon 2.4 compatibility #213

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Chaging few line of code this the Python package norecaptcha can be also Python 
2.4 compatible.

Python 2.4 is not shipped with the "json" library, changing 
norecaptcha/captcha.py as follow fix the problem:

    try:
        import json
    except ImportError:
        import simplejson as json

The the user must simple add simplejson to its installation.

Original issue reported on code.google.com by luca.fab...@redturtle.it on 2 Feb 2015 at 9:31