aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/utils.py
diff options
context:
space:
mode:
authorzorun <github@bitsofnetworks.org>2020-04-26 22:48:30 +0200
committerGitHub <noreply@github.com>2020-04-26 22:48:30 +0200
commit342292ca9f080d2600edf07f28d1798ebe814559 (patch)
tree09fc9adef346a339d257cf49581b3873265d6e0c /ihatemoney/utils.py
parentd9dc38947c88f211f7deef2454f3a15251ed23d3 (diff)
downloadihatemoney-mirror-342292ca9f080d2600edf07f28d1798ebe814559.zip
ihatemoney-mirror-342292ca9f080d2600edf07f28d1798ebe814559.tar.gz
ihatemoney-mirror-342292ca9f080d2600edf07f28d1798ebe814559.tar.bz2
Fix language code parsing (#589)
Diffstat (limited to 'ihatemoney/utils.py')
-rw-r--r--ihatemoney/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ihatemoney/utils.py b/ihatemoney/utils.py
index d8c887b..c8daa56 100644
--- a/ihatemoney/utils.py
+++ b/ihatemoney/utils.py
@@ -97,7 +97,7 @@ def static_include(filename):
def locale_from_iso(iso_code):
- return Locale(iso_code)
+ return Locale.parse(iso_code)
def list_of_dicts2json(dict_to_convert):