reduce: try removing codeblocks below ';{}'

This commit is contained in:
Daniel Marjamäki 2016-01-28 08:05:43 +01:00
parent b5986f6ad2
commit 8ef17e70ca
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ def removeblocks(filedata):
strippedline = filedata[i].strip() strippedline = filedata[i].strip()
if len(strippedline)==0: if len(strippedline)==0:
continue continue
if strippedline[-1] != '}' and strippedline[-1] != ';': if ';{}'.find(strippedline[-1]) < 0:
continue continue
i1 = i + 1 i1 = i + 1