pediapress/mwlib — Issue #7: Inconsistent importation of json and simplejson
Author: Arfrever
Created: 2012-02-04 03:47:51+00:00
State: open

Some modules firstly try to import simplejson, while others json. This can result in importing both json and simplejson:

```
$ python2.7
Python 2.7.2+ (2.7:f1ee3bb6ba64+, Jan 29 2012, 20:33:23)
[GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import mwlib.siteinfo.fetch_siteinfo
>>> sys.modules["json"]

>>> sys.modules["simplejson"]

>>>
```

I suggest that all modules firstly try to import simplejson before json.