Fixed some indentation errors

These errors were likely introduced when the code was run through a
code formatter in my IDE. I don't know
how I didn't notice them until now as they broke some functionality.
This commit is contained in:
AMRowsell 2021-06-30 03:49:57 +00:00
commit 41d0e04771

View file

@ -57,14 +57,14 @@ try:
for i in range(0,rllLen):
outputData += f.read(1)
size -= 1
print("Remaining size: {0}".format(size))
print("Remaining size: {0}".format(size))
for i in range(0, size):
outputData += b'\xff'
with open(filename + "_converted.xbm", 'w') as f:
print("Writing output file...")
f.write(outputString.format(filename, width, height))
f.write(" {")
f.write(" {\n")
q = 0
for byte in outputData:
result = int('{:08b}'.format(byte)[::-1], 2)
@ -73,9 +73,9 @@ try:
if q >= 16:
f.write("\n")
q = 0
f.write(" };")
print("Done!")
sys.exit(0)
f.write(" };")
print("Done!")
sys.exit(0)
elif version == 1:
print("Version 1 Paint detected...")
width = int.from_bytes(f.read(2), "little")
@ -91,13 +91,14 @@ try:
if q >= 16:
outputString += "\n"
q = 0
outputString += " };"
outputString += " };"
with open(filename + "_converted.xbm", 'w') as f:
print("Writing output file...")
f.write(outputString)
print("Done!")
sys.exit(0)
print("Done!")
sys.exit(0)
except FileNotFoundError:
print("{0}.MSP does not exist! Quitting...".format(filename))
sys.exit(255)