Your IP : 216.73.216.85
�
��Wc @ s1 d d l Z d d l Z d d � Z d � Z d S( i����Nc
C s� y t j � } t j � } Wn t k
r; d } d } n X| d k rQ g } n t d � | D� � rv t d � � n d } g | D] \ } } | | | f ^ q� } | | | f g | t � d | | f g } d j | � S( s�
Returns 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
t Unknownc s s! | ] } t | � d k Vq d S( i N( t len( t .0t extra( ( sS /opt/alt/python27/lib/python2.7/site-packages/requests_toolbelt/utils/user_agent.pys <genexpr> s s/ Extras should be a sequence of two item tuples.s %s/%st N( t platformt systemt releaset IOErrort Nonet anyt
ValueErrort _implementation_stringt join(
t namet versiont extrast p_systemt p_releaset
format_stringt
extra_namet
extra_versiont extra_piecest user_agent_pieces( ( sS /opt/alt/python27/lib/python2.7/site-packages/requests_toolbelt/utils/user_agent.pyt
user_agent s"