mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
[IMP]Deleted unnecessary super return.
This commit is contained in:
@@ -23,11 +23,8 @@ from .lang_ES import Num2Word_ES
|
|||||||
class Num2Word_ES_CO(Num2Word_ES):
|
class Num2Word_ES_CO(Num2Word_ES):
|
||||||
|
|
||||||
def to_currency(self, val, longval=True, old=False):
|
def to_currency(self, val, longval=True, old=False):
|
||||||
if old:
|
|
||||||
return self.to_splitnum(val, hightxt="peso/s", lowtxt="peso/s",
|
return self.to_splitnum(val, hightxt="peso/s", lowtxt="peso/s",
|
||||||
divisor=1000, jointxt="y", longval=longval)
|
divisor=1000, jointxt="y", longval=longval)
|
||||||
return super(Num2Word_ES, self).to_currency(val, jointxt="y",
|
|
||||||
longval=longval)
|
|
||||||
|
|
||||||
|
|
||||||
n2w = Num2Word_ES_CO()
|
n2w = Num2Word_ES_CO()
|
||||||
|
|||||||
@@ -23,12 +23,8 @@ from .lang_ES import Num2Word_ES
|
|||||||
class Num2Word_ES_VE(Num2Word_ES):
|
class Num2Word_ES_VE(Num2Word_ES):
|
||||||
|
|
||||||
def to_currency(self, val, longval=True, old=False):
|
def to_currency(self, val, longval=True, old=False):
|
||||||
if old:
|
|
||||||
return self.to_splitnum(val, hightxt="bolívar/es Fuerte/s", lowtxt="bolívar/es fuerte/s",
|
return self.to_splitnum(val, hightxt="bolívar/es Fuerte/s", lowtxt="bolívar/es fuerte/s",
|
||||||
divisor=1000, jointxt="y", longval=longval)
|
divisor=1000, jointxt="y", longval=longval)
|
||||||
return super(Num2Word_ES, self).to_currency(val, jointxt="y",
|
|
||||||
longval=longval)
|
|
||||||
|
|
||||||
|
|
||||||
n2w = Num2Word_ES_VE()
|
n2w = Num2Word_ES_VE()
|
||||||
to_card = n2w.to_cardinal
|
to_card = n2w.to_cardinal
|
||||||
|
|||||||
Reference in New Issue
Block a user