def force_implementation(modname):
 global implementation
 for (name, spec) in [(e[0], e) for e in _modules]:
  if (name == modname):
   implementation = _JsonImplementation(spec)
   return
 raise ImportError(('No module named: %s' % modname))

def force_implementation ( modname ) : global implementation for ( name , spec ) in [ ( e [ 0 ] , e ) for e in _modules ] : if ( name == modname ) : implementation = _JsonImplementation ( spec ) return raise ImportError ( ( 'No module named: %s' % modname ) )
forces anyjson to use a specific json module if its available .