Bunch of pep8 and inspection cleanup

This commit is contained in:
Ebag333
2016-12-15 12:43:19 -08:00
parent 658a87cbc0
commit 4fb07cc1d0
24 changed files with 105 additions and 93 deletions

View File

@@ -34,8 +34,8 @@ class Attribute():
if isinstance(identity, (int, basestring)):
info = eos.db.getAttributeInfo(identity, eager=("icon", "unit"))
elif isinstance(identity, (int, float)):
id = int(identity)
info = eos.db.getAttributeInfo(id, eager=("icon", "unit"))
id_ = int(identity)
info = eos.db.getAttributeInfo(id_, eager=("icon", "unit"))
else:
info = None
return info