comparison 0.9.x/babel/messages/catalog.py @ 509:cd2dec0823c9 stable

Python 2.3 compatibility: backporting r456 and r457 to 0.9 branch (see #233)
author fschwarz
date Fri, 04 Mar 2011 13:14:03 +0000
parents 4adedf7d0f04
children
comparison
equal deleted inserted replaced
507:56ea1ec02e16 509:cd2dec0823c9
17 from datetime import datetime 17 from datetime import datetime
18 from difflib import get_close_matches 18 from difflib import get_close_matches
19 from email import message_from_string 19 from email import message_from_string
20 from copy import copy 20 from copy import copy
21 import re 21 import re
22 try:
23 set
24 except NameError:
25 from sets import Set as set
26 import time 22 import time
27 23
28 from babel import __version__ as VERSION 24 from babel import __version__ as VERSION
29 from babel.core import Locale 25 from babel.core import Locale
30 from babel.dates import format_datetime 26 from babel.dates import format_datetime
31 from babel.messages.plurals import get_plural 27 from babel.messages.plurals import get_plural
32 from babel.util import odict, distinct, LOCALTZ, UTC, FixedOffsetTimezone 28 from babel.util import odict, distinct, set, LOCALTZ, UTC, FixedOffsetTimezone
33 29
34 __all__ = ['Message', 'Catalog', 'TranslationError'] 30 __all__ = ['Message', 'Catalog', 'TranslationError']
35 __docformat__ = 'restructuredtext en' 31 __docformat__ = 'restructuredtext en'
36 32
37 33
Copyright (C) 2012-2017 Edgewall Software