From d8aed494215d74ea8a41edc6ffee7ea8a8fcc0bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romuald=20Texier-Marcad=C3=A9?= Date: Tue, 25 Aug 2020 11:58:43 +0200 Subject: [PATCH] PEP8 --- text_to_num/lang/english.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/text_to_num/lang/english.py b/text_to_num/lang/english.py index bd702da..a9dcfa4 100644 --- a/text_to_num/lang/english.py +++ b/text_to_num/lang/english.py @@ -146,11 +146,11 @@ def ord2card(self, word: str) -> Optional[str]: source = RAD_MAP[source] elif source.endswith("ie"): source = source[:-2] + "y" - elif source.endswith('fif'): # fifth -> five + elif source.endswith('fif'): # fifth -> five source = source[:-1] + 've' - elif source.endswith('eigh'): # eighth -> eight + elif source.endswith('eigh'): # eighth -> eight source = source + 't' - elif source.endswith('nin'): # ninth -> nine + elif source.endswith('nin'): # ninth -> nine source = source + 'e' if source not in self.NUMBERS: return None