def get_index_trap(*args, **kwargs):
 from conda.core.index import get_index
 kwargs.pop(u'json', None)
 return get_index(*args, **kwargs)

def get_index_trap ( * args , ** kwargs ) : from conda . core . index import get_index kwargs . pop ( u'json' , None ) return get_index ( * args , ** kwargs )
retrieves the package index .