from babel.core import *
-__docformat__ = 'restructuredtext en'
+
try:
from pkg_resources import get_distribution, ResolutionError
try:
__all__ = ['UnknownLocaleError', 'Locale', 'default_locale', 'negotiate_locale',
'parse_locale']
-__docformat__ = 'restructuredtext en'
+
_global_data = None
__all__ = ['format_date', 'format_datetime', 'format_time', 'format_timedelta',
'get_timezone_name', 'parse_date', 'parse_datetime', 'parse_time']
-__docformat__ = 'restructuredtext en'
+
LC_TIME = default_locale('LC_TIME')
from babel.compat import threading
__all__ = ['exists', 'locale_identifiers', 'load']
-__docformat__ = 'restructuredtext en'
+
_cache = {}
_cache_lock = threading.RLock()
from babel.util import odict, distinct, LOCALTZ, UTC, FixedOffsetTimezone
__all__ = ['Message', 'Catalog', 'TranslationError']
-__docformat__ = 'restructuredtext en'
+
PYTHON_FORMAT = re.compile(r'''(?x)
from textwrap import dedent
__all__ = ['extract', 'extract_from_dir', 'extract_from_file']
-__docformat__ = 'restructuredtext en'
+
GROUP_NAME = 'babel.extractors'
__all__ = ['CommandLineInterface', 'compile_catalog', 'extract_messages',
'init_catalog', 'check_message_extractors', 'update_catalog']
-__docformat__ = 'restructuredtext en'
+
class compile_catalog(Command):
from babel.messages.catalog import Catalog, Message
__all__ = ['read_mo', 'write_mo']
-__docformat__ = 'restructuredtext en'
+
LE_MAGIC = 0x950412deL
from babel.util import wraptext
__all__ = ['read_po', 'write_po']
-__docformat__ = 'restructuredtext en'
+
def unescape(string):
r"""Reverse `escape` the given string.
__all__ = ['format_number', 'format_decimal', 'format_currency',
'format_percent', 'format_scientific', 'parse_number',
'parse_decimal', 'NumberFormatError']
-__docformat__ = 'restructuredtext en'
+
LC_NUMERIC = default_locale('LC_NUMERIC')
__all__ = ['PluralRule', 'RuleError', 'to_gettext', 'to_javascript',
'to_python']
-__docformat__ = 'restructuredtext en'
+
_plural_tags = ('zero', 'one', 'two', 'few', 'many', 'other')
from babel.util import UTC
__all__ = ['Format', 'LazyProxy', 'NullTranslations', 'Translations']
-__docformat__ = 'restructuredtext en'
+
class Format(object):
__all__ = ['distinct', 'pathmatch', 'relpath', 'wraptext', 'odict', 'UTC',
'LOCALTZ']
-__docformat__ = 'restructuredtext en'
+
def distinct(iterable):