pep8
parent
1710803bb0
commit
57a86a7fe6
|
@ -241,8 +241,8 @@ def pronounce_number_en(num, places=2, short_scale=True, scientific=False):
|
|||
n, power = number.replace("+", "").split("E")
|
||||
power = int(power)
|
||||
if power != 0:
|
||||
return pronounce_number_en(float(n), places, short_scale, False) + \
|
||||
" times ten to the power of " + \
|
||||
return pronounce_number_en(float(n), places, short_scale, False) \
|
||||
+ " times ten to the power of " + \
|
||||
pronounce_number_en(power, places, short_scale, False)
|
||||
if short_scale:
|
||||
number_names = NUM_STRING_EN.copy()
|
||||
|
|
|
@ -181,6 +181,7 @@ class TestPronounceNumber(unittest.TestCase):
|
|||
"one point six seven two times ten to the power of "
|
||||
"negative twenty seven")
|
||||
|
||||
|
||||
# def nice_time(dt, lang="en-us", speech=True, use_24hour=False,
|
||||
# use_ampm=False):
|
||||
class TestNiceDateFormat(unittest.TestCase):
|
||||
|
|
Loading…
Reference in New Issue