Add link to gist

This commit is contained in:
Nicolas Frandeboeuf 2018-01-18 14:04:39 +01:00
parent 771b140705
commit 62907a621c

View File

@ -25,6 +25,12 @@ LOGGER = logging.getLogger(__name__)
NAVITIA_ENDPOINT = "https://api.navitia.io/v1/coverage/fr-idf/journeys" NAVITIA_ENDPOINT = "https://api.navitia.io/v1/coverage/fr-idf/journeys"
class RomanNumbers(): 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): def check_valid(self, roman):
if not re.match('^[MDCLXVI]+$', roman): if not re.match('^[MDCLXVI]+$', roman):
return False return False