From 0be5138170416dd40a09d8c046dbfbfd24c6c4d6 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 13 May 2013 11:58:33 +0300 Subject: Fix get_format() name --- gsxws/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gsxws/core.py b/gsxws/core.py index 014ae3f..b39771e 100644 --- a/gsxws/core.py +++ b/gsxws/core.py @@ -110,7 +110,7 @@ def validate(value, what=None): return (result == what) if what else result -def get_formats(locale=GSX_LOCALE): +def get_format(locale=GSX_LOCALE): filepath = os.path.join(os.path.dirname(__file__), 'langs.json') df = open(filepath, 'r') return json.load(df).get(locale) @@ -274,7 +274,7 @@ class GsxObject(object): def __init__(self, *args, **kwargs): self._data = {} - self._formats = get_formats() + self._formats = get_format() for a in args: k = validate(a) -- cgit v1.2.3