MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / arabicOrRomanToInt

Function arabicOrRomanToInt

gui/characterEditor.py:54–60  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

52
53
54def arabicOrRomanToInt(s):
55 m = re.match(r'\d+$', s)
56 if m:
57 i = int(s)
58 else:
59 i = roman.fromRoman(s)
60 return i
61
62
63class CharacterTextValidor(BaseValidator):

Callers 1

importSkillsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected