Cleaning du main

This commit is contained in:
xdrm-brackets 2015-09-06 16:02:28 +02:00
parent 0a5c105944
commit ce56e38e2f
1 changed files with 4 additions and 8 deletions

View File

@ -9,19 +9,15 @@ from headerClass import *
import dep import dep
import sys import sys
tmp = "" fileData = ""
content = ""
with open(sys.argv[1]) as f: with open(sys.argv[1]) as f:
for byte in f.read(): for byte in f.read():
content += byte fileData += byte
tmp += str( hex( ord(byte) ) )[2:] + ","
headerSize = 54 headerSize = 54
header = BMPHeader(content[0:headerSize]) header = BMPHeader( fileData[0:headerSize] )
content = tmp[headerSize:] content = fileData[headerSize:]
print header.offset print header.offset
print print