From bd0fcbef3a21a9acf2fa0c4c79a130c8bb037113 Mon Sep 17 00:00:00 2001 From: BlueShanks Date: Sat, 17 Feb 2018 18:26:00 +1000 Subject: [PATCH] Fixed style issues which were throwing errors The code was failing an automatic test because of style issues, which are hopefully fixed now --- gui/characterEditor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/characterEditor.py b/gui/characterEditor.py index 9e7329c0e..7e40ac47d 100644 --- a/gui/characterEditor.py +++ b/gui/characterEditor.py @@ -43,6 +43,7 @@ import re pyfalog = Logger(__name__) + def arabicOrRomanToInt(s): m = re.match(r'\d+$', s) if m: @@ -51,6 +52,7 @@ def arabicOrRomanToInt(s): i = roman.fromRoman(s) return i + class CharacterTextValidor(BaseValidator): def __init__(self): BaseValidator.__init__(self) @@ -418,7 +420,7 @@ class SkillTreeView(wx.Panel): for l in lines: s = l.strip() - skill, level = s.rsplit(None,1)[0], arabicOrRomanToInt(s.rsplit(None,1)[1]) + skill, level = s.rsplit(None, 1)[0], arabicOrRomanToInt(s.rsplit(None, 1)[1]) skill = char.getSkill(skill) if skill: skill.setLevel(level, ignoreRestrict=True)