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:
parent
d051b56cd2
commit
41d0e04771
1 changed files with 9 additions and 8 deletions
|
@ -64,7 +64,7 @@ try:
|
||||||
with open(filename + "_converted.xbm", 'w') as f:
|
with open(filename + "_converted.xbm", 'w') as f:
|
||||||
print("Writing output file...")
|
print("Writing output file...")
|
||||||
f.write(outputString.format(filename, width, height))
|
f.write(outputString.format(filename, width, height))
|
||||||
f.write(" {")
|
f.write(" {\n")
|
||||||
q = 0
|
q = 0
|
||||||
for byte in outputData:
|
for byte in outputData:
|
||||||
result = int('{:08b}'.format(byte)[::-1], 2)
|
result = int('{:08b}'.format(byte)[::-1], 2)
|
||||||
|
@ -98,6 +98,7 @@ try:
|
||||||
f.write(outputString)
|
f.write(outputString)
|
||||||
print("Done!")
|
print("Done!")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
print("{0}.MSP does not exist! Quitting...".format(filename))
|
print("{0}.MSP does not exist! Quitting...".format(filename))
|
||||||
sys.exit(255)
|
sys.exit(255)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue