Mercurial > babel > old > babel-test
diff 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 |
line wrap: on
line diff
--- a/babel/messages/frontend.py +++ b/babel/messages/frontend.py @@ -626,7 +626,7 @@ self._configure_logging(options.loglevel) if options.list_locales: - identifiers = localedata.list() + identifiers = localedata.locale_identifiers() longest = max([len(identifier) for identifier in identifiers]) identifiers.sort() format = u'%%-%ds %%s' % (longest + 1)