Remove redundant parenthesis
This commit is contained in:
@@ -410,7 +410,7 @@ else:
|
||||
if not effect_file.startswith('__'):
|
||||
file_name, file_extension = effect_file.rsplit('.', 1)
|
||||
# Ignore non-py files and exclude implementation-specific 'effects'
|
||||
if file_extension == "py" and not file_name in ("__init__"):
|
||||
if file_extension == "py" and not file_name in "__init__":
|
||||
effect_list.append(file_name)
|
||||
|
||||
# Stage 2
|
||||
|
||||
@@ -65,7 +65,7 @@ graphics = graphicIDsLoader.load(os.path.join(to_path, 'graphicIDs.fsdbinary'))
|
||||
|
||||
graphics_py_ob = {}
|
||||
for x, v in graphics.items():
|
||||
if (hasattr(v, 'iconFolder')):
|
||||
if hasattr(v, 'iconFolder'):
|
||||
graphics_py_ob[x] = v.iconFolder
|
||||
|
||||
# Add children to market group list
|
||||
|
||||
@@ -239,7 +239,7 @@ def main(db, json_path):
|
||||
row['iconFile'] = row['iconFile'].lower().replace('modules/', '').replace('.png', '')
|
||||
|
||||
if jsonName is 'clonegrades':
|
||||
if (row['alphaCloneID'] not in tmp):
|
||||
if row['alphaCloneID'] not in tmp:
|
||||
cloneParent = eos.gamedata.AlphaClone()
|
||||
setattr(cloneParent, 'alphaCloneID', row['alphaCloneID'])
|
||||
setattr(cloneParent, 'alphaCloneName', row['alphaCloneName'])
|
||||
@@ -247,7 +247,7 @@ def main(db, json_path):
|
||||
tmp.append(row['alphaCloneID'])
|
||||
|
||||
for k, v in row.items():
|
||||
if (isinstance(v, str)):
|
||||
if isinstance(v, str):
|
||||
v = v.strip()
|
||||
setattr(instance, fieldMap.get(k, k), v)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user