diff --git a/contrib/devtools/optimize-pngs.py b/contrib/devtools/optimize-pngs.py --- a/contrib/devtools/optimize-pngs.py +++ b/contrib/devtools/optimize-pngs.py @@ -66,7 +66,8 @@ fileMetaMap['contentHashPost'] = content_hash(file_path) if fileMetaMap['contentHashPre'] != fileMetaMap['contentHashPost']: - print "Image contents of PNG file " + file + " before and after crushing don't match" + print "Image contents of PNG file " + file + \ + " before and after crushing don't match" sys.exit(1) fileMetaMap['psize'] = os.path.getsize(file_path) @@ -79,6 +80,8 @@ newHash = fileDict['sha256New'] totalSaveBytes += fileDict['osize'] - fileDict['psize'] noHashChange = noHashChange and (oldHash == newHash) - print fileDict['file'] + "\n size diff from: " + str(fileDict['osize']) + " to: " + str(fileDict['psize']) + "\n old sha256: " + oldHash + "\n new sha256: " + newHash + "\n" + print fileDict['file'] + "\n size diff from: " + str(fileDict['osize']) + " to: " + str( + fileDict['psize']) + "\n old sha256: " + oldHash + "\n new sha256: " + newHash + "\n" -print "completed. Checksum stable: " + str(noHashChange) + ". Total reduction: " + str(totalSaveBytes) + " bytes" +print "completed. Checksum stable: " + \ + str(noHashChange) + ". Total reduction: " + str(totalSaveBytes) + " bytes"