diff babel/numbers.py @ 39:3b314a78015d

Move function for determining the system default locale to `babel.core`, and make it available as a class method on `Locale`.
author cmlenz
date Wed, 06 Jun 2007 11:02:24 +0000
parents 48cf004aa357
children fa8a27b80eb4
line wrap: on
line diff
--- a/babel/numbers.py
+++ b/babel/numbers.py
@@ -24,15 +24,14 @@
 
 import re
 
-from babel.core import Locale
-from babel.util import default_locale
+from babel.core import getdefault, Locale
 
 __all__ = ['format_number', 'format_decimal', 'format_currency',
            'format_percent', 'format_scientific', 'parse_number',
            'parse_decimal', 'NumberFormatError']
 __docformat__ = 'restructuredtext en'
 
-LC_NUMERIC = default_locale('LC_NUMERIC')
+LC_NUMERIC = getdefault('LC_NUMERIC')
 
 def get_decimal_symbol(locale=LC_NUMERIC):
     """Return the symbol used by the locale to separate decimal fractions.
Copyright (C) 2012-2017 Edgewall Software