Comment 6 for bug 510129

Revision history for this message
Luca Falavigna (dktrkranz) wrote : Re: [Bug 510129] Re: python-launchpadlib is missing python-simplejson dependency

James Westby ha scritto:
> try:
> import json
> except ImportError:
> import simplejson as json

Yes, it works in many circumstances, at least at those I saw so far.

In this case, code could become:
try:
    import json as simplejson
except ImportError:
    import simplejson

Maybe upstream is interested in using that.