From 2c48cce62a5aa2998d32b23afe21889a5f9331a7 Mon Sep 17 00:00:00 2001 From: ej Date: Tue, 3 Sep 2013 21:10:05 -0400 Subject: [PATCH] Changed spacing --- pnger.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/pnger.py b/pnger.py index 81932db..c7df03e 100644 --- a/pnger.py +++ b/pnger.py @@ -4,32 +4,24 @@ @author - e @date - 9/3/2013 - - ''' import sys import argparse - - - def pngit(infile, outfile, nowrite=0): outcounter = 0 - with open(outfile, "wb") as theoutf: - + with open(outfile, "wb") as theoutf: if nowrite == 0: theoutf.write("\x89\x50\x4E\x47\x0D\x0A\x1A\x0A") - with open(infile, "rb") as f: - byte = f.read(1) while byte != "": - if outcounter >= nowrite: theoutf.write(byte) else: outcounter+=1 + byte = f.read(1) def unpngit(infile, outfile):