From 7476928fb93189028a4fa5045f39a2fb62720798 Mon Sep 17 00:00:00 2001 From: hplattner Date: Thu, 8 Mar 2012 20:47:44 +0100 Subject: [PATCH] fix: forNumber use location --- util/format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/format.py b/util/format.py index 388117a..5d759d2 100644 --- a/util/format.py +++ b/util/format.py @@ -54,7 +54,7 @@ def formatDate(dt=None, type='date', variant='medium', lang='de'): def formatNumber(num, type='decimal', lang='de'): loc = locales.getLocale(lang) - fmt = de.numbers.getFormatter(type) + fmt = loc.numbers.getFormatter(type) return fmt.format(num)