3 ÅýP\¬ ã @ sN d dl Z d dlZd dlZddd„ZG dd„ deƒZdd„ Zdd „ Zd d„ ZdS ) é Nc C s( |dkrg }t | |ƒj|ƒjƒ jƒ jƒ S )a¿ Return an internet-friendly user_agent string. The majority of this code has been wilfully stolen from the equivalent function in Requests. :param name: The intended name of the user-agent, e.g. "python-requests". :param version: The version of the user-agent, e.g. "0.0.1". :param extras: List of two-item tuples that are added to the user-agent string. :returns: Formatted user-agent string :rtype: str N)ÚUserAgentBuilderÚinclude_extrasÚinclude_implementationÚinclude_systemÚbuild)ÚnameÚversionÚextras© r ú /usr/lib/python3.6/user_agent.pyÚ user_agent s r c @ s<