3 eY7g @ s d Z ddlZddlmZ ddlZddlmZmZmZm Z m Z ddlmZm Z mZ ddlmZmZ ddlmZ dZddd"dd#d$d%dd'd)d Zd*gZdZdd Zdedef ddfddZd+ddZef ddfddZef ddfddZdd Zdd Zd d! ZdS ),aa 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 by the Babel Team. :license: BSD, see LICENSE for more details. N)relpath)generate_tokensCOMMENTNAMEOPSTRING)parse_encodingparse_future_flags pathmatch)PY2 text_type)dedentzbabel.extractors c) _gettextZngettextZugettextZ ungettextdgettextZ dngettextZN_ZpgettextZ npgettext**.pypythonz%s: warning: Empty msgid. It is reserved by GNU gettext: gettext("") returns the header entry with meta information, not the empty string.c s" fdd}t || | dd<