cleanup
unused var whitespace missing import
This commit is contained in:
parent
c60ec3c2f3
commit
4fa2901720
2 changed files with 4 additions and 4 deletions
|
|
@ -517,13 +517,12 @@ def check_sigmd5(filename):
|
|||
f.seek(o)
|
||||
data = f.read(8)
|
||||
indexcount, storesize = struct.unpack('!II', data)
|
||||
sig_o = 0
|
||||
for idx in range(indexcount):
|
||||
data = f.read(16)
|
||||
tag, data_type, offset, count = struct.unpack('!IIII', data)
|
||||
if tag == 1004: # SIGMD5
|
||||
assert(data_type == 7) # binary data
|
||||
assert(count == 16) # 16 bytes of md5
|
||||
if tag == 1004: # SIGMD5
|
||||
assert(data_type == 7) # binary data
|
||||
assert(count == 16) # 16 bytes of md5
|
||||
break
|
||||
# seek to location of md5
|
||||
f.seek(o + 8 + indexcount * 16 + offset)
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ import subprocess
|
|||
import libvirt
|
||||
import libxml2
|
||||
import random
|
||||
import rpm
|
||||
import socket
|
||||
import six.moves.xmlrpc_server
|
||||
import threading
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue