Mercurial > babel > old > babel-test
comparison babel/messages/frontend.py @ 546:b33c36615fe9
rename babel.localedata.list() to ease Python 3 transition (fixes #250)
author | fschwarz |
---|---|
date | Sat, 19 Mar 2011 19:48:23 +0000 |
parents | 8262aa9c73da |
children |
comparison
equal
deleted
inserted
replaced
545:afdab04b8527 | 546:b33c36615fe9 |
---|---|
624 | 624 |
625 options, args = self.parser.parse_args(argv[1:]) | 625 options, args = self.parser.parse_args(argv[1:]) |
626 | 626 |
627 self._configure_logging(options.loglevel) | 627 self._configure_logging(options.loglevel) |
628 if options.list_locales: | 628 if options.list_locales: |
629 identifiers = localedata.list() | 629 identifiers = localedata.locale_identifiers() |
630 longest = max([len(identifier) for identifier in identifiers]) | 630 longest = max([len(identifier) for identifier in identifiers]) |
631 identifiers.sort() | 631 identifiers.sort() |
632 format = u'%%-%ds %%s' % (longest + 1) | 632 format = u'%%-%ds %%s' % (longest + 1) |
633 for identifier in identifiers: | 633 for identifier in identifiers: |
634 locale = Locale.parse(identifier) | 634 locale = Locale.parse(identifier) |