diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2016-08-17 15:04:38 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-08-22 16:43:32 +0000 |
commit | b48b7b4109868a8c0ddda090992e936e821c7ea6 (patch) | |
tree | 696be8ea782f2548c0f63bb0188f4c8d3eeed681 /import-layers/meta-openembedded/meta-python/recipes-devtools/python/python-flask-wtf/import-simplejson-as-json.patch | |
parent | d849ec78de728ef9a2d383b92ccfeabf40f8f1d0 (diff) | |
download | talos-openbmc-b48b7b4109868a8c0ddda090992e936e821c7ea6.tar.gz talos-openbmc-b48b7b4109868a8c0ddda090992e936e821c7ea6.zip |
Squashed 'import-layers/meta-openembedded/' content from commit 247b126
Change-Id: I40827e9ce5fba63f1cca2a0be44976ae8383b4c0
git-subtree-dir: import-layers/meta-openembedded
git-subtree-split: 247b1267bbe95719cd4877d2d3cfbaf2a2f4865a
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'import-layers/meta-openembedded/meta-python/recipes-devtools/python/python-flask-wtf/import-simplejson-as-json.patch')
-rw-r--r-- | import-layers/meta-openembedded/meta-python/recipes-devtools/python/python-flask-wtf/import-simplejson-as-json.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/import-layers/meta-openembedded/meta-python/recipes-devtools/python/python-flask-wtf/import-simplejson-as-json.patch b/import-layers/meta-openembedded/meta-python/recipes-devtools/python/python-flask-wtf/import-simplejson-as-json.patch new file mode 100644 index 000000000..678f7062b --- /dev/null +++ b/import-layers/meta-openembedded/meta-python/recipes-devtools/python/python-flask-wtf/import-simplejson-as-json.patch @@ -0,0 +1,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 + |