mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
Modernize: Unicode literals
This commit is contained in:
@@ -27,6 +27,7 @@ Notes:
|
||||
History:
|
||||
0.2: n2w, to_card, to_ord, to_ordnum now imported correctly
|
||||
'''
|
||||
from __future__ import unicode_literals
|
||||
import locale as _locale
|
||||
|
||||
# Correct omissions in locale:
|
||||
|
||||
@@ -28,6 +28,7 @@ History
|
||||
add to_currency() and to_year()
|
||||
|
||||
'''
|
||||
from __future__ import unicode_literals
|
||||
from num2word_EU import Num2Word_EU
|
||||
|
||||
#//TODO: Use German error messages
|
||||
|
||||
@@ -35,7 +35,7 @@ History:
|
||||
|
||||
1.1: to_ordinal_num() fixed for 11,12,13
|
||||
'''
|
||||
from __future__ import division
|
||||
from __future__ import division, unicode_literals
|
||||
import num2word_EU
|
||||
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ Usage:
|
||||
|
||||
|
||||
'''
|
||||
|
||||
from __future__ import unicode_literals
|
||||
from num2word_EN import Num2Word_EN
|
||||
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ Usage:
|
||||
History:
|
||||
1.0: Split from num2word_EN with the addition of to_currency()
|
||||
'''
|
||||
|
||||
from __future__ import unicode_literals
|
||||
from num2word_EN import Num2Word_EN
|
||||
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ History:
|
||||
Todo:
|
||||
Currency (pounds/shillings/pence)
|
||||
'''
|
||||
from __future__ import unicode_literals
|
||||
from num2word_EN_GB import Num2Word_EN_GB
|
||||
|
||||
class Num2Word_EN_GB_old(Num2Word_EN_GB):
|
||||
|
||||
@@ -27,6 +27,7 @@ History:
|
||||
String interpolation where it makes things clearer
|
||||
add to_currency()
|
||||
'''
|
||||
from __future__ import unicode_literals
|
||||
from num2word_EU import Num2Word_EU
|
||||
|
||||
#//TODO: correct orthographics
|
||||
|
||||
@@ -19,6 +19,7 @@ Data from:
|
||||
History:
|
||||
1.1: add to_currency()
|
||||
'''
|
||||
from __future__ import unicode_literals
|
||||
from num2word_base import Num2Word_Base
|
||||
|
||||
class Num2Word_EU(Num2Word_Base):
|
||||
|
||||
@@ -30,6 +30,7 @@ History:
|
||||
String interpolation where it makes things clearer
|
||||
to_currency() added [to_year works by default]
|
||||
'''
|
||||
from __future__ import unicode_literals
|
||||
from num2word_EU import Num2Word_EU
|
||||
|
||||
#//TODO: error messages in French
|
||||
|
||||
@@ -72,6 +72,7 @@ tūkstantis du šimtai trisdešimt keturi litai, penkiasdešimt šeši centai
|
||||
>>> print(to_currency(-1251985, cents = False))
|
||||
minus dvylika tūkstančių penki šimtai devyniolika litų, 85 centai
|
||||
"""
|
||||
from __future__ import unicode_literals
|
||||
|
||||
ZERO = (u'nulis',)
|
||||
|
||||
|
||||
@@ -17,8 +17,7 @@ History:
|
||||
add to_year() and to_currency() stubs
|
||||
'''
|
||||
|
||||
|
||||
from __future__ import generators
|
||||
from __future__ import unicode_literals
|
||||
from orderedmapping import OrderedMapping
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user