simplejson raises deprecation warning on import in feisty

Bug #91150 reported by John Beisley
2
Affects Status Importance Assigned to Milestone
simplejson (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: python-simplejson

To reproduce, run Python 2.5 (default in feisty), and enter: "import simplejson"

This is not a critical problem, but might be in future Python releases. For now it just outputs ugly warnings.

The problem appears to have been fixed in version 1.6 of simplejson (upstream). Upstream version 1.6 seems to import without warning on both Python 2.4 and 2.5.

Revision history for this message
John Beisley (greatred) wrote :

Oh, and the warning message itself:
/var/lib/python-support/python2.5/simplejson/scanner.py:6: DeprecationWarning: The sre module is deprecated, please import re.
  from sre import VERBOSE, MULTILINE, DOTALL

Revision history for this message
hollerith (sp4me4ter) wrote :

For now, one could just patch /var/lib/python-support/python2.5/simplejson/scanner.py by editing the file and removing the 's' from sre to leave

from re import VERBOSE, MULTILINE, DOTALL

This issue is resolved in version 1.7

Daniel T Chen (crimsun)
Changed in simplejson:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.