def distros_for_url(url, metadata=None):
base, fragment = egg_info_for_url(url)<EOL>for dist in distros_for_location(url, base, metadata): yield dist<EOL>if fragment:<EOL><INDENT>match = EGG_FRAGMENT.match(fragment)<EOL>if match:<EOL><INDENT>for dist in interpret_distro_name(<EOL>url, match.group(<NUM_LIT:1>), metadata, precedence = CHECKOUT_DIST<EOL>):<EOL><INDENT>yield dist<EOL><DEDENT><DEDENT><DEDENT>
Yield egg or source distribution objects that might be found at a URL