From 935d95a87f8e59341991982d51d3dd365ebad3f0 Mon Sep 17 00:00:00 2001 From: Tufan Kaynak <31142607+toofun666@users.noreply.github.com> Date: Tue, 5 Sep 2017 14:53:42 +0300 Subject: [PATCH] removed ineffective splitnum function --- num2words/lang_TR.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/num2words/lang_TR.py b/num2words/lang_TR.py index 3bf2406..dc3c26a 100644 --- a/num2words/lang_TR.py +++ b/num2words/lang_TR.py @@ -113,16 +113,13 @@ class Num2Word_TR(object): self.total_digits_outside_triplets = 0 self.order_of_last_zero_digit = 0 - def splitnum(self, value): - return self.to_splitnum(value) - def to_cardinal(self, value): wrd = "" is_cardinal = self.verify_cardinal(value) if is_cardinal: if not int(value) == value: return self.to_cardinal_float(value) - self.splitnum(value) + self.to_splitnum(value) if self.order_of_last_zero_digit >= len(self.integers_to_read[0]): # number like 00 and all 0s and even more, raise error @@ -309,7 +306,7 @@ class Num2Word_TR(object): return wrd def to_cardinal_float(self, value): - self.splitnum(value) + self.to_splitnum(value) wrd = "" wrd += self.pointword if len(self.integers_to_read[1]) >= 1: @@ -352,7 +349,7 @@ class Num2Word_TR(object): wrd = "" isordinal = self.verify_ordinal(value) if isordinal: - self.splitnum(value) + self.to_splitnum(value) if self.order_of_last_zero_digit >= len(self.integers_to_read[0]): # number like 00 and all 0s and even more, raise error