aboutsummaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python-flask-wtf/import-simplejson-as-json.patch
blob: 678f7062b7deb5aa19407fa599013fcfb1ec8155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Upstream-Status: Inappropriate [configuration]

Subject: [PATCH] import simplejson as json

At runtime python-Flask-WTF tries to import json, but the module is not 
available, import simplejson as json solve the issue.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
---
 flask_wtf/recaptcha/validators.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flask_wtf/recaptcha/validators.py b/flask_wtf/recaptcha/validators.py
index bcff23d..4a244bb 100644
--- a/flask_wtf/recaptcha/validators.py
+++ b/flask_wtf/recaptcha/validators.py
@@ -8,7 +8,7 @@ from flask import request, current_app
 from wtforms import ValidationError
 from werkzeug import url_encode
 from .._compat import to_bytes, to_unicode
-import json
+import simplejson as json
 
 RECAPTCHA_VERIFY_SERVER = 'https://www.google.com/recaptcha/api/siteverify'
 RECAPTCHA_ERROR_CODES = {
-- 
2.1.4