From 62907a621c86c81c5acf5bc84896867611ae2c9b Mon Sep 17 00:00:00 2001 From: Nicolas Frandeboeuf Date: Thu, 18 Jan 2018 14:04:39 +0100 Subject: [PATCH] Add link to gist --- flatisfy/tools.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flatisfy/tools.py b/flatisfy/tools.py index 8e6e164..c33ceaa 100644 --- a/flatisfy/tools.py +++ b/flatisfy/tools.py @@ -25,6 +25,12 @@ LOGGER = logging.getLogger(__name__) NAVITIA_ENDPOINT = "https://api.navitia.io/v1/coverage/fr-idf/journeys" class RomanNumbers(): + """ + Utilities to check and convert roman numbers. + Part of the convertions are based on + https://gist.github.com/riverrun/ac91218bb1678b857c12 + """ + def check_valid(self, roman): if not re.match('^[MDCLXVI]+$', roman): return False