def default_user_agent(name="<STR_LIT>"):
_implementation = platform.python_implementation()<EOL>if _implementation == '<STR_LIT>':<EOL><INDENT>_implementation_version = platform.python_version()<EOL><DEDENT>elif _implementation == '<STR_LIT>':<EOL><INDENT>_implementation_version = '<STR_LIT>' % (sys.pypy_version_info.major,<EOL>sys.pypy_version_info.minor,<EOL>sys.pypy_version_info.micro)<EOL>if sys.pypy_version_info.releaselevel != '<STR_LIT>':<EOL><INDENT>_implementation_version = '<STR_LIT>'.join([_implementation_version, sys.pypy_version_info.releaselevel])<EOL><DEDENT><DEDENT>elif _implementation == '<STR_LIT>':<EOL><INDENT>_implementation_version = platform.python_version()  <EOL><DEDENT>elif _implementation == '<STR_LIT>':<EOL><INDENT>_implementation_version = platform.python_version()  <EOL><DEDENT>else:<EOL><INDENT>_implementation_version = '<STR_LIT>'<EOL><DEDENT>try:<EOL><INDENT>p_system = platform.system()<EOL>p_release = platform.release()<EOL><DEDENT>except IOError:<EOL><INDENT>p_system = '<STR_LIT>'<EOL>p_release = '<STR_LIT>'<EOL><DEDENT>return "<STR_LIT:U+0020>".join(['<STR_LIT>' % (name, __version__),<EOL>'<STR_LIT>' % (_implementation, _implementation_version),<EOL>'<STR_LIT>' % (p_system, p_release)])<EOL>
Return a string representing the default user agent.