Even more PEP8 cleanup

This commit is contained in:
Ebag333
2016-10-19 12:29:33 -07:00
parent 69a122a271
commit 44c76f0b98
3 changed files with 3 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ mapper(Fit, fits_table,
collection_class=HandledProjectedModList,
cascade='all, delete, delete-orphan',
single_parent=True,
primaryjoin=and_(modules_table.c.fitID == fits_table.c.ID, modules_table.c.projected == True)),
primaryjoin=and_(modules_table.c.fitID == fits_table.c.ID, modules_table.c.projected is True)),
"owner": relation(
User,
backref="fits"),

View File

@@ -306,7 +306,7 @@ class ModifiedAttributeDict(collections.MutableMapping):
tbl = self.__postIncreases
else:
raise ValueError("position should be either pre or post")
if attributeName not in tbl:
if attributeName not in tbl:
tbl[attributeName] = 0
tbl[attributeName] += increase
self.__placehold(attributeName)

View File

@@ -79,7 +79,7 @@ class Implant(HandledItem, ItemAttrShortcut):
return self.__item
def __calculateSlot(self, item):
if "implantness" not in item.attributes:
if "implantness" not in item.attributes:
raise ValueError("Passed item is not an implant")
return int(item.attributes["implantness"].value)