Skip to content

Commit 703d157

Browse files
committed
renamed argument ka2latin_script to latin_script
1 parent 8d87958 commit 703d157

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

geolang/geolang.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
__author__ = 'Lasha Gogua'
1616
__email__ = '[email protected]'
17-
__version__ = '0.2.0'
17+
__version__ = '0.2.1'
1818

1919
__all__ = ['GeoLangToolKit', 'encode_slugify', 'encode_text']
2020

@@ -23,7 +23,7 @@ class GeoLangToolKit(object):
2323

2424
def __init__(
2525
self,
26-
ka2latin_script: Union[str, List[str], Tuple[Iterable[str]]] = None
26+
latin_script: Union[str, List[str], Tuple[Iterable[str]]] = None
2727
) -> None:
2828
"""
2929
Romanization of Georgian is the process of transliterating the Georgian
@@ -48,16 +48,16 @@ def __init__(
4848
"""
4949
self.ka_script: str = 'აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰ'
5050

51-
if isinstance(ka2latin_script, (list, tuple)):
52-
self.latin_script = ka2latin_script
53-
elif isinstance(ka2latin_script, str):
54-
if len(ka2latin_script) < 33:
51+
if isinstance(latin_script, (list, tuple)):
52+
self.latin_script = latin_script
53+
elif isinstance(latin_script, str):
54+
if len(latin_script) < 33:
5555
raise ValueError(
5656
'Wrong latin script characters, available list, '
5757
'tuple or comma separated string, max length 33.'
5858
)
5959
else:
60-
self.latin_script = ka2latin_script.split(',')
60+
self.latin_script = latin_script.split(',')
6161
else:
6262
self.latin_script: Iterable[str] = (
6363
'a', 'b', 'g', 'd', 'e', 'v', 'z', 't', 'i', 'k', 'l', 'm',

0 commit comments

Comments
 (0)