diff --git a/mycroft/util/lang/format_en.py b/mycroft/util/lang/format_en.py index bc460bfc0e..116e6f47f3 100644 --- a/mycroft/util/lang/format_en.py +++ b/mycroft/util/lang/format_en.py @@ -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() diff --git a/test/unittests/util/test_format.py b/test/unittests/util/test_format.py index c0a3d25317..b70c1c3962 100755 --- a/test/unittests/util/test_format.py +++ b/test/unittests/util/test_format.py @@ -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):