U
    ó×cc8  ã                   @   s   d dl Z dd„ ZdS )é    Nc                 C   sH   d  dd„ tjdd… D ƒ¡}d | |¡}|dkr6|S |d |¡ S dS )	aX  Return the user agent info along with the SDK and Python
    Version information.

    :param sdk_version: Version of the SDK being used.
    :type sdk_version: str
    :param custom_user_agent: Custom User Agent string provided by
        the developer.
    :type custom_user_agent: str
    :return: User Agent Info string
    :rtype: str
    Ú.c                 s   s   | ]}t |ƒV  qd S )N)Ústr)Ú.0Úx© r   ú@/tmp/pip-unpacked-wheel-urk6bcke/ask_sdk_model/services/utils.pyÚ	<genexpr>!   s     z"user_agent_info.<locals>.<genexpr>r   é   zask-python-model/{} Python/{}Nz {})ÚjoinÚsysÚversion_infoÚformat)Zsdk_versionZcustom_user_agentÚpython_versionÚ
user_agentr   r   r   Úuser_agent_info   s     ÿr   )r   r   r   r   r   r   Ú<module>   s   