Skip to content

Commit dc242f9

Browse files
committed
Replace deprecated JSONIFY_PRETTYPRINT_REGULAR usage
This was deprecated in 2.2.0, and is gone in 2.3.0. We already require 2.2.4 or higher. The deprecation notice says to set `app.json.compact` instead, so we'll do that! Signed-off-by: Adam Williamson <awilliam@redhat.com>
1 parent 1f6e049 commit dc242f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpbin/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def jsonify(*args, **kwargs):
8989

9090
app = Flask(__name__, template_folder=tmpl_dir)
9191
app.debug = bool(os.environ.get("DEBUG"))
92-
app.config["JSONIFY_PRETTYPRINT_REGULAR"] = True
92+
app.json.compact = False
9393

9494
app.add_template_global("HTTPBIN_TRACKING" in os.environ, name="tracking_enabled")
9595

0 commit comments

Comments
 (0)