Skip to content
Myr

Support old and new name for json

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent aecc41d · Browse files · 1 file+5 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−2 removed

  • other:+5 added−2 removed

1 file+5 added−2 removed

modified:flask/json.py+5 added-2 removed
13 unmodified lines
1415from werkzeug.http import http_date1617# Use the same json implementation as itsdangerous on which we18# depend anyways.19from itsdangerous import simplejson as _json18# depend anyways. This name changed at one point so support both.19try:20 from itsdangerous import simplejson as _json21except ImportError:22 from itsdangerous import json as _json232425# figure out if simplejson escapes slashes. This behavior was changed26# from one version to another without reason.
149 unmodified lines