def only_xmodules(identifier, entry_points):
 from_xmodule = [entry_point for entry_point in entry_points if (entry_point.dist.key == 'xmodule')]
 return default_select(identifier, from_xmodule)

def only_xmodules ( identifier , entry_points ) : from_xmodule = [ entry_point for entry_point in entry_points if ( entry_point . dist . key == 'xmodule' ) ] return default_select ( identifier , from_xmodule )
only use entry_points that are supplied by the xmodule package .