Removed debugging lines

This commit is contained in:
Andrew Murray 2017-09-01 20:04:22 +10:00
parent 5c2df30ac3
commit 6602c7cec4

View File

@ -139,16 +139,13 @@ SAVE = {
} }
def _save(im, fp, filename, check=0): def _save(im, fp, filename):
try: try:
rawmode, bits, colormaptype, imagetype = SAVE[im.mode] rawmode, bits, colormaptype, imagetype = SAVE[im.mode]
except KeyError: except KeyError:
raise IOError("cannot write mode %s as TGA" % im.mode) raise IOError("cannot write mode %s as TGA" % im.mode)
if check:
return check
if colormaptype: if colormaptype:
colormapfirst, colormaplength, colormapentry = 0, 256, 24 colormapfirst, colormaplength, colormapentry = 0, 256, 24
else: else: