Even more PEP8 cleanup
This commit is contained in:
@@ -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"),
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user