Skip to content

Commit

Permalink
renamed argument ka2latin_script to latin_script
Browse files Browse the repository at this point in the history
  • Loading branch information
Lh4cKg committed Jan 18, 2021
1 parent 8d87958 commit 703d157
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions geolang/geolang.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

__author__ = 'Lasha Gogua'
__email__ = '[email protected]'
__version__ = '0.2.0'
__version__ = '0.2.1'

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

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

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

if isinstance(ka2latin_script, (list, tuple)):
self.latin_script = ka2latin_script
elif isinstance(ka2latin_script, str):
if len(ka2latin_script) < 33:
if isinstance(latin_script, (list, tuple)):
self.latin_script = latin_script
elif isinstance(latin_script, str):
if len(latin_script) < 33:
raise ValueError(
'Wrong latin script characters, available list, '
'tuple or comma separated string, max length 33.'
)
else:
self.latin_script = ka2latin_script.split(',')
self.latin_script = latin_script.split(',')
else:
self.latin_script: Iterable[str] = (
'a', 'b', 'g', 'd', 'e', 'v', 'z', 't', 'i', 'k', 'l', 'm',
Expand Down

0 comments on commit 703d157

Please sign in to comment.