Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | Upstream-Status: Inappropriate [configuration] |
| 2 | |
| 3 | Subject: [PATCH] import simplejson as json |
| 4 | |
| 5 | At runtime python-Flask-WTF tries to import json, but the module is not |
| 6 | available, import simplejson as json solve the issue. |
| 7 | |
| 8 | Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> |
| 9 | --- |
| 10 | flask_wtf/recaptcha/validators.py | 2 +- |
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 12 | |
| 13 | diff --git a/flask_wtf/recaptcha/validators.py b/flask_wtf/recaptcha/validators.py |
| 14 | index bcff23d..4a244bb 100644 |
| 15 | --- a/flask_wtf/recaptcha/validators.py |
| 16 | +++ b/flask_wtf/recaptcha/validators.py |
| 17 | @@ -8,7 +8,7 @@ from flask import request, current_app |
| 18 | from wtforms import ValidationError |
| 19 | from werkzeug import url_encode |
| 20 | from .._compat import to_bytes, to_unicode |
| 21 | -import json |
| 22 | +import simplejson as json |
| 23 | |
| 24 | RECAPTCHA_VERIFY_SERVER = 'https://www.google.com/recaptcha/api/siteverify' |
| 25 | RECAPTCHA_ERROR_CODES = { |
| 26 | -- |
| 27 | 2.1.4 |
| 28 | |