#NEWLINE# def _Call( func , name ) : #NEWLINE# #INDENT# "Call a pkg_resources function.\n\n  Args:\n    func: A function from pkg_resources that takes the arguments\n          (package_or_requirement, resource_name); for more info,\n          see http://peak.telecommunity.com/DevCenter/PkgResources\n    name: A name of the form 'module.name:path/to/resource'; this should\n          generally be built from __name__ in the calling module.\n\n  Returns:\n    The result of calling the function on the split resource name.\n  " #NEWLINE# ( pkg_name , resource_name ) = name . split ( ':' , 1 ) #NEWLINE# return func ( pkg_name , pkg_name )