Format pripnglsch using black
@@ -20,22 +20,24 @@ except AttributeError:
def list(out, inp):
r = png.Reader(file=inp)
for t, v in r.chunks():
- add = ''
+ add = ""
if len(v) <= 28:
- add = ' ' + binascii.hexlify(v).decode('ascii')
- t = t.decode('ascii')
+ add = " " + binascii.hexlify(v).decode("ascii")
+ t = t.decode("ascii")
print("%s %10d%s" % (t, len(v), add), file=out)
+
def main(argv=None):
if argv is None:
argv = sys.argv
arg = argv[1:]
if len(arg) > 0:
- f = open(arg[0], 'rb')
+ f = open(arg[0], "rb")
else:
f = sys.stdin
return list(sys.stdout, f)
-if __name__ == '__main__':
+
+if __name__ == "__main__":
main()
