| Server IP : 14.225.204.176 / Your IP : 216.73.216.6 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /proc/self/root/lib/python3/dist-packages/babel/messages/__pycache__/ |
Upload File : |
�
ƪb�g � �� � d Z ddlZddlmZ ddlZddlmZmZmZm Z m
Z
ddlmZm
Z
mZ ddlmZ dZdddddd d
dddd
�
ZdgZdZd� Zd� Zdededdddfd�Z dd�Zedddfd�Zedddfd�Zd� Zd� Zd� Zy)af
babel.messages.extract
~~~~~~~~~~~~~~~~~~~~~~
Basic infrastructure for extracting localizable messages from source files.
This module defines an extensible system for collecting localizable message
strings from a variety of sources. A native extractor for Python source
files is builtin, extractors for other sources can be added using very
simple plugins.
The main entry points into the extraction functionality are the functions
`extract_from_dir` and `extract_from_file`.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
� N)�relpath)�generate_tokens�COMMENT�NAME�OP�STRING)�parse_encoding�parse_future_flags� pathmatch)�dedentzbabel.extractors)� � )r )r � )�r
�cr )r r r )
�_�gettext�ngettext�ugettext� ungettext�dgettext� dngettext�N_�pgettext� npgettext)z**.py�pythonz�%s: warning: Empty msgid. It is reserved by GNU gettext: gettext("") returns the header entry with meta information, not the empty string.c �. �� �fd�}t || � | dd y)z�Helper function for `extract` that strips comment tags from strings
in a list of comment lines. This functions operates in-place.
c �t �� �D ]1 }| j |� s�| t |� d j � c S | S �N)�
startswith�len�strip)�line�tag�tagss ��8/usr/lib/python3/dist-packages/babel/messages/extract.py�_stripz#_strip_comment_tags.<locals>._strip6 s>