From: Armin Ronacher Date: Fri, 5 Jul 2013 10:57:23 +0000 (+0200) Subject: Removed __docformat__ markers X-Git-Tag: 1.0~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0df402d103c7800c1f45c8dbd3f8566576f115bf;p=thirdparty%2Fbabel.git Removed __docformat__ markers --- diff --git a/babel/__init__.py b/babel/__init__.py index e4d9a0ab..2e34f7c7 100644 --- a/babel/__init__.py +++ b/babel/__init__.py @@ -28,7 +28,7 @@ This package is basically composed of two major parts: from babel.core import * -__docformat__ = 'restructuredtext en' + try: from pkg_resources import get_distribution, ResolutionError try: diff --git a/babel/core.py b/babel/core.py index e3f422e1..42dcf7d5 100644 --- a/babel/core.py +++ b/babel/core.py @@ -20,7 +20,7 @@ from babel import localedata __all__ = ['UnknownLocaleError', 'Locale', 'default_locale', 'negotiate_locale', 'parse_locale'] -__docformat__ = 'restructuredtext en' + _global_data = None diff --git a/babel/dates.py b/babel/dates.py index 8b0086df..642195b9 100644 --- a/babel/dates.py +++ b/babel/dates.py @@ -30,7 +30,7 @@ from babel.util import UTC __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') diff --git a/babel/localedata.py b/babel/localedata.py index 0433a9f3..ee63a07a 100644 --- a/babel/localedata.py +++ b/babel/localedata.py @@ -24,7 +24,7 @@ from UserDict import DictMixin from babel.compat import threading __all__ = ['exists', 'locale_identifiers', 'load'] -__docformat__ = 'restructuredtext en' + _cache = {} _cache_lock = threading.RLock() diff --git a/babel/messages/catalog.py b/babel/messages/catalog.py index de991fa2..0d454e57 100644 --- a/babel/messages/catalog.py +++ b/babel/messages/catalog.py @@ -28,7 +28,7 @@ from babel.messages.plurals import get_plural from babel.util import odict, distinct, LOCALTZ, UTC, FixedOffsetTimezone __all__ = ['Message', 'Catalog', 'TranslationError'] -__docformat__ = 'restructuredtext en' + PYTHON_FORMAT = re.compile(r'''(?x) diff --git a/babel/messages/extract.py b/babel/messages/extract.py index 018d41ba..11ae46c3 100644 --- a/babel/messages/extract.py +++ b/babel/messages/extract.py @@ -29,7 +29,7 @@ from babel.util import parse_encoding, pathmatch, relpath from textwrap import dedent __all__ = ['extract', 'extract_from_dir', 'extract_from_file'] -__docformat__ = 'restructuredtext en' + GROUP_NAME = 'babel.extractors' diff --git a/babel/messages/frontend.py b/babel/messages/frontend.py index 350e81d5..90d01a45 100755 --- a/babel/messages/frontend.py +++ b/babel/messages/frontend.py @@ -41,7 +41,7 @@ from babel.util import odict, LOCALTZ __all__ = ['CommandLineInterface', 'compile_catalog', 'extract_messages', 'init_catalog', 'check_message_extractors', 'update_catalog'] -__docformat__ = 'restructuredtext en' + class compile_catalog(Command): diff --git a/babel/messages/mofile.py b/babel/messages/mofile.py index 4a21eff6..55d9368a 100644 --- a/babel/messages/mofile.py +++ b/babel/messages/mofile.py @@ -24,7 +24,7 @@ import struct from babel.messages.catalog import Catalog, Message __all__ = ['read_mo', 'write_mo'] -__docformat__ = 'restructuredtext en' + LE_MAGIC = 0x950412deL diff --git a/babel/messages/pofile.py b/babel/messages/pofile.py index 3afbaa39..49cabca3 100644 --- a/babel/messages/pofile.py +++ b/babel/messages/pofile.py @@ -25,7 +25,7 @@ from babel.messages.catalog import Catalog, Message from babel.util import wraptext __all__ = ['read_po', 'write_po'] -__docformat__ = 'restructuredtext en' + def unescape(string): r"""Reverse `escape` the given string. diff --git a/babel/numbers.py b/babel/numbers.py index 4ee9a705..c8980c7b 100644 --- a/babel/numbers.py +++ b/babel/numbers.py @@ -32,7 +32,7 @@ from babel.core import default_locale, Locale __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') diff --git a/babel/plural.py b/babel/plural.py index e2982191..ba1fe52a 100644 --- a/babel/plural.py +++ b/babel/plural.py @@ -17,7 +17,7 @@ import re __all__ = ['PluralRule', 'RuleError', 'to_gettext', 'to_javascript', 'to_python'] -__docformat__ = 'restructuredtext en' + _plural_tags = ('zero', 'one', 'two', 'few', 'many', 'other') diff --git a/babel/support.py b/babel/support.py index cde1448b..80f015cf 100644 --- a/babel/support.py +++ b/babel/support.py @@ -29,7 +29,7 @@ from babel.numbers import format_number, format_decimal, format_currency, \ from babel.util import UTC __all__ = ['Format', 'LazyProxy', 'NullTranslations', 'Translations'] -__docformat__ = 'restructuredtext en' + class Format(object): diff --git a/babel/util.py b/babel/util.py index 14e83844..8eb7f697 100644 --- a/babel/util.py +++ b/babel/util.py @@ -25,7 +25,7 @@ missing = object() __all__ = ['distinct', 'pathmatch', 'relpath', 'wraptext', 'odict', 'UTC', 'LOCALTZ'] -__docformat__ = 'restructuredtext en' + def distinct(iterable):