Tox fix, and catch an extra shadowing

This commit is contained in:
Ebag333
2017-02-10 12:06:23 -08:00
parent 8c7682c6d4
commit 3562577521
2 changed files with 3 additions and 3 deletions

View File

@@ -377,8 +377,8 @@ class Skill(HandledItem):
if hasattr(self, "_Skill__ro") and self.__ro is True and key != "characterID":
raise ReadOnlyException()
map = {"characterID": lambda val: isinstance(val, int),
"skillID": lambda val: isinstance(val, int)}
map = {"characterID": lambda _val: isinstance(_val, int),
"skillID": lambda _val: isinstance(_val, int)}
if not map[key](val):
raise ValueError(str(val) + " is not a valid value for " + key)

View File

@@ -59,7 +59,7 @@ class GraphFrame(wx.Frame):
from matplotlib.figure import Figure
enabled = True
except ImportError:
matplotlib = mpl = FigureCanvasWxAgg = Canvas = Figure = None
mpl = Canvas = Figure = None
enabled = False
self.legendFix = False