This is no longer needed with 2.4 and onward.
from babel.core import Locale
from babel.dates import format_datetime
from babel.messages.plurals import get_plural
-from babel.util import odict, distinct, set, LOCALTZ, UTC, FixedOffsetTimezone
+from babel.util import odict, distinct, LOCALTZ, UTC, FixedOffsetTimezone
__all__ = ['Message', 'Catalog', 'TranslationError']
__docformat__ = 'restructuredtext en'
from itertools import izip
from babel.messages.catalog import TranslationError, PYTHON_FORMAT
-from babel.util import set
#: list of format chars that are compatible to each other
_string_format_compatibilities = [
import sys
from tokenize import generate_tokens, COMMENT, NAME, OP, STRING
-from babel.util import parse_encoding, pathmatch, relpath, set
+from babel.util import parse_encoding, pathmatch, relpath
from textwrap import dedent
__all__ = ['extract', 'extract_from_dir', 'extract_from_file']
from babel import __version__ as VERSION
from babel.messages.catalog import Catalog, Message
-from babel.util import set, wraptext, LOCALTZ
+from babel.util import wraptext, LOCALTZ
__all__ = ['read_po', 'write_po']
__docformat__ = 'restructuredtext en'
import re
-from babel.util import frozenset, set
-
__all__ = ['PluralRule', 'RuleError', 'to_gettext', 'to_javascript',
'to_python']
__docformat__ = 'restructuredtext en'
import textwrap
import time
from itertools import izip, imap
-try:
- # assigned so they're importable
- frozenset = frozenset
- set = set
-except NameError:
- from sets import ImmutableSet as frozenset, Set as set
try:
from operator import itemgetter
except ImportError: