# HG changeset patch # User Edho Prima Arief # Date 1310579423 -25200 # Node ID a5324d2cc0eba0d7a26e25bb976976139bb6fa41 # Parent 9790bc126ea6d23777242cb7d700eb4788c09b71 Updated documentation. diff -r 9790bc126ea6 -r a5324d2cc0eb bin/recompress --- a/bin/recompress Thu Jul 14 00:49:33 2011 +0700 +++ b/bin/recompress Thu Jul 14 00:50:23 2011 +0700 @@ -4,11 +4,7 @@ from PIL import Image -# return codes: -# 0 = ok -# 1 = error opening file (not an image, not a file, unreadable or whatever) -# 2 = error saving file (no write permission) -# 3 = not a png file +# Raises a generic exception (exception.Exception) if input is not a PNG file. def repng(filename): im = Image.open(filename) if im.format == "PNG":