def isValidSpec(spec_or_source_url):
try:<EOL><INDENT>parseSourceURL(spec_or_source_url)<EOL>return True<EOL><DEDENT>except InvalidVersionSpec:<EOL><INDENT>return False<EOL><DEDENT>
Check if the specified version source URL (or version spec), can be
        parsed successfully.