Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
babel
/
messages
/
__pycache__
/
File Content:
catalog.cpython-37.pyc
B �`#~ � @ s4 d Z ddlZddlZddlmZ ddlmZ ddlmZmZ ddl m Z ddlmZ ddl m Z dd lmZ dd lmZmZ ddlmZ ddlmZ dd lmZmZmZ ddlmZmZmZm Z m!Z!m"Z" dddgZ#e�$dej%�Z&dd� Z'G dd� de(�Z)G dd� de*�Z+dZ,e�rdd� Z-neZ-G dd� de(�Z.dS )z� babel.messages.catalog ~~~~~~~~~~~~~~~~~~~~~~ Data structures for message catalogs. :copyright: (c) 2013-2021 by the Babel Team. :license: BSD, see LICENSE for more details. � N)�parse_header)�OrderedDict)�datetime�time)�get_close_matches)�message_from_string)�copy)�__version__)�Locale�UnknownLocaleError)�format_datetime)� get_plural)�distinct�LOCALTZ�FixedOffsetTimezone)�string_types�number_types�PY2�cmp� text_type� force_text�Message�Catalog�TranslationErrorz� \% (?:\(([\w]*)\))? ( [-#0\ +]?(?:\*|[\d]+)? (?:\.(?:\*|[\d]+))? [hlL]? ) ([diouxXeEfFgGcrs%]) c C s� t �d| �}t�|�d�d�}t�|�}t�|�}|�d�}|d k r�|d |dd � }}|d d� |dd � }} t|d �} t|�}t| �}|d } | |7 } | | 9 } t | �}|j |d �}|S )Nz+^(?P<datetime>.*?)(?P<tzoffset>[+-]\d{4})?$r z%Y-%m-%d %H:%M�tzoffsetr � � �1�<