Server : nginx/1.24.0 System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE Directory : /lib/python3/dist-packages/botocore/__pycache__/ |
Upload File : |
� P��e�G � �� � d Z ddlZddlZddlmZ ddlmZmZ ddlmZm Z ddl mZ ddl mZ eez dz Zd Zd diZdZd � Z G d� de� Z G d� d� Z ddlmZ G d� d� Zd� Zy# e$ r d� ZY �w xY w)a� NOTE: All classes and functions in this module are considered private and are subject to abrupt breaking changes. Please do not use them directly. To modify the User-Agent header sent by botocore, use one of these configuration options: * The ``AWS_SDK_UA_APP_ID`` environment variable. * The ``sdk_ua_app_id`` setting in the shared AWS config file. * The ``user_agent_appid`` field in the :py:class:`botocore.config.Config`. * The ``user_agent_extra`` field in the :py:class:`botocore.config.Config`. � N)�copy)� ascii_letters�digits)� NamedTuple�Optional)�__version__)�HAS_CRTz!$%&'*+-.^_`|~)�windows�linux�macos�android�ios�watchos�tvos�other�darwinr �Botocorec �8 �� dj �fd�| D � � S )a} Replaces all not allowed characters in the string with a dash ("-"). Allowed characters are ASCII alphanumerics and ``!$%&'*+-.^_`|~``. If ``allow_hash`` is ``True``, "#"``" is also allowed. :type raw_str: str :param raw_str: The input string to be sanitized. :type allow_hash: bool :param allow_hash: Whether "#" is considered an allowed character. � c 3 �D �K � | ] }|t v s�r|d k( r|nd�� � y�w)�#�-N)�_USERAGENT_ALLOWED_CHARACTERS)�.0�c� allow_hashs ��4/usr/lib/python3/dist-packages/botocore/useragent.py� <genexpr>z7sanitize_user_agent_string_component.<locals>.<genexpr>A s6 �� �� � � � �-�-�*��c�� � � ��s � )�join)�raw_strr s `r �$sanitize_user_agent_string_componentr! 5 s% �� � �7�7� � � � � � c �@ � e Zd ZU dZeed<