Bug #263
Crash in case of wrong JSON library
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | scenic.gtk | Spent time: | - | |
| Target version: | 0.4.1 | |||
| Resolution: | fixed | Version: | 0.3.6 | |
| Trac ticket ID: | 263 |
Description
Index: py/scenic/saving.py
===================================================================
--- py/scenic/saving.py (revision 5060)
+++ py/scenic/saving.py (working copy)
@@ -33,6 +33,7 @@
_tmp = json.loads
except [[AttributeError]]:
import warnings
+ import sys
warnings.warn("Use simplejson, not the old json module.")
sys.modules.pop('json') # get rid of the bad json module
import simplejson as json
History
Updated by Alexandre Quessy over 3 years ago
- Status changed from New to In Progress
Updated by Alexandre Quessy over 3 years ago
- Status changed from In Progress to Closed
- Resolution set to fixed
Fixed in r5060.