Skip to content

Commit

Permalink
fix DeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
ali96343 committed Nov 13, 2023
1 parent 6e49c28 commit ae64431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py4web/server_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def check_kv(kx, vx):
)
if kx and vx and kx not in bad_keys:
if vx.startswith("{") and vx.endswith("}"):
vt = re.sub(",\s*\}", "}", vx)
vt = re.sub("r'\,\s*\}'", "}", vx)
vx = json.loads(vt.replace("'", '"'))
if vx == "None":
vx = None
Expand Down

0 comments on commit ae64431

Please sign in to comment.