#2677 closed defect (fixed)
[patch] simplejson raises DeprecationWarning
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | Core (Other) | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
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.
Attachments (1)
Change History (5)
by , 19 years ago
| Attachment: | simplejson-tweak.diff added |
|---|
comment:1 by , 19 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 , 19 years ago
| Summary: | simplejson raises DeprecationWarning → [patch] simplejson raises DeprecationWarning |
|---|
comment:3 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:4 by , 18 years ago
| Reporter: | changed from to |
|---|
tweak bundled simplejson