From: Armin Ronacher Date: Thu, 25 Jul 2013 07:30:56 +0000 (+0200) Subject: Some codestyle updates in babel.messages.plurals X-Git-Tag: 1.0~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09f2b54d1a923a055b2a7ac7887d2304d9c6f274;p=thirdparty%2Fbabel.git Some codestyle updates in babel.messages.plurals --- diff --git a/babel/messages/mofile.py b/babel/messages/mofile.py index d409526e..5dd20aee 100644 --- a/babel/messages/mofile.py +++ b/babel/messages/mofile.py @@ -15,13 +15,11 @@ import struct from babel.messages.catalog import Catalog, Message from babel._compat import range_type -__all__ = ['read_mo', 'write_mo'] - - LE_MAGIC = 0x950412de BE_MAGIC = 0xde120495 + def read_mo(fileobj): """Read a binary MO file from the given file-like object and return a corresponding `Catalog` object. diff --git a/babel/messages/plurals.py b/babel/messages/plurals.py index 9b4b4ac2..c00a2110 100644 --- a/babel/messages/plurals.py +++ b/babel/messages/plurals.py @@ -13,6 +13,9 @@ from babel.core import default_locale, Locale from operator import itemgetter +# XXX: remove this file, duplication with babel.plural + + LC_CTYPE = default_locale('LC_CTYPE')