Add newline to the end of the file

This commit is contained in:
DarkPhoenix
2019-03-22 18:30:41 +03:00
parent efd58a80a4
commit 37b44befac
2 changed files with 4 additions and 2 deletions

View File

@@ -35592,4 +35592,4 @@ class Effect7183(EffectDef):
@staticmethod
def handler(fit, src, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == 'Warp Scrambler', 'maxRange',
src.getModifiedItemAttr('warpScrambleRangeBonus'), stackingPenalties=False)
src.getModifiedItemAttr('warpScrambleRangeBonus'), stackingPenalties=False)

View File

@@ -1061,7 +1061,9 @@ inner score: {5:.3})"
continue
else:
lines = lines[:docstart_idx] + lines[docend_idx + 1:]
lines = lines[:effect_idx + 1] + docstring_new + lines[effect_idx + 1:] + []
lines = lines[:effect_idx + 1] + docstring_new + lines[effect_idx + 1:]
if lines[-1].strip():
lines.append('')
with open(effects_path, 'w') as f:
f.write('\n'.join(lines))
elif DEBUG_LEVEL >= 2: