Shorten lines in war.py