aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-05-13 11:58:33 +0300
committerFilipp Lepalaan <f@230.to>2013-05-13 11:58:33 +0300
commit0be5138170416dd40a09d8c046dbfbfd24c6c4d6 (patch)
tree0131a464caf3b1d6289d6ce9ea82b8c9db5dffd7 /gsxws
parent14c329ec10da44912b4fc025d65e70d709251492 (diff)
downloadpy-gsxws-0be5138170416dd40a09d8c046dbfbfd24c6c4d6.tar.gz
py-gsxws-0be5138170416dd40a09d8c046dbfbfd24c6c4d6.tar.bz2
py-gsxws-0be5138170416dd40a09d8c046dbfbfd24c6c4d6.zip
Fix get_format() name
Diffstat (limited to 'gsxws')
-rw-r--r--gsxws/core.py4
1 files 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)