fix condition for closing file

This commit is contained in:
Lucas De Marchi
2011-02-03 00:20:12 -02:00
parent 160d3d3649
commit 1073b60660

View File

@ -132,7 +132,7 @@ def parse_file(filename, colors):
print('Error decoding file: %s' % filename, file=sys.stderr)
return
finally:
if filename == '-':
if filename != '-':
f.close()
i = 1