diff babel/localedata.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 85e1beadacb0
children 423bb50cb8af
line wrap: on
line diff
--- a/babel/localedata.py
+++ b/babel/localedata.py
@@ -25,7 +25,7 @@
     import dummy_threading as threading
 from UserDict import DictMixin
 
-__all__ = ['exists', 'list', 'load']
+__all__ = ['exists', 'locale_identifiers', 'load']
 __docformat__ = 'restructuredtext en'
 
 _cache = {}
@@ -45,7 +45,7 @@
     return os.path.exists(os.path.join(_dirname, '%s.dat' % name))
 
 
-def list():
+def locale_identifiers():
     """Return a list of all locale identifiers for which locale data is
     available.
     
Copyright (C) 2012-2017 Edgewall Software