#2677 closed defect (fixed)
[patch] simplejson raises DeprecationWarning
Description ¶
The simplejson
module bundled with Django raises a DepreciationWarning
when loaded, since it uses the sre
module rather than re
.
Since there is no reason not to use re
(we're trying to be backwards compatible, but not that backwards compatible!), Django's simplejson
should be patched to simply use re
.
Change History (5)
by , 18 years ago
Attachment: | simplejson-tweak.diff added |
---|
comment:1 by , 18 years ago
I've attached a patch that, while not removing dependence upon sre_parse
, sre_compile
, or sre_constants
(since simplejson
is working some lower-level regex magic with those), it does shut up the DepreciationWarning
by importing some constants from re
rather than sre
(the latter merely being a wrapper around the former).
comment:2 by , 18 years ago
Summary: | simplejson raises DeprecationWarning → [patch] simplejson raises DeprecationWarning |
---|
comment:3 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 18 years ago
Reporter: | changed from | to
---|
tweak bundled simplejson