Skip to content
Snippets Groups Projects
Verified Commit 9ea6a951 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

fix pep8 E122

parent 7b7786bd
No related branches found
No related tags found
No related merge requests found
......@@ -45,4 +45,4 @@ class DocxFile(File):
self.path,
other.path,
source='docx2txt',
)]
)]
......@@ -498,7 +498,7 @@ class ElfContainer(Container):
(get_tool_name('objcopy'),) + args,
shell=False,
stderr=subprocess.DEVNULL,
)
)
# If #812089 was fixed, we would just do os.link(debug_file.path,
# dest_path) but for now, we need to do more complicated things…
......
......@@ -57,8 +57,8 @@ def parse_entries(f):
pos = f.tell()
x['ctime'], x['ctime_nano'], x['mtime'], x['mtime_nano'], \
x['dev'], x['inode'], x['mode'], x['uid'], x['gid'], \
x['size'], x['sha'], x['flags'] = \
x['dev'], x['inode'], x['mode'], x['uid'], x['gid'], \
x['size'], x['sha'], x['flags'] = \
struct.unpack('>LLLLLLLLLL20sH', f.read((4 * 10) + 20 + 2))
x['path'] = f.read(x['flags'] & 0x0fff)
......@@ -78,9 +78,9 @@ Version: {version}
Entries:
{entries_fmt}
""".format(
entries_fmt=''.join(describe_entry(x) for x in index['entries']),
**index
)
entries_fmt=''.join(describe_entry(x) for x in index['entries']),
**index
)
def describe_entry(x):
......@@ -96,8 +96,8 @@ Modified: {x[mtime]}.{x[mtime_nano]}
Inode: {x[inode]}
Device ID: ({major}, {minor})
""".format(
x=x,
major=os.major(x['dev']),
minor=os.minor(x['dev']),
hexsha=binascii.b2a_hex(x['sha']).decode('utf-8'),
)
x=x,
major=os.major(x['dev']),
minor=os.minor(x['dev']),
hexsha=binascii.b2a_hex(x['sha']).decode('utf-8'),
)
......@@ -45,4 +45,4 @@ class OdtFile(File):
self.path,
other.path,
source='odt2txt',
)]
)]
......@@ -41,4 +41,4 @@ class OggFile(File):
self.path,
other.path,
source='oggDump',
)]
)]
......@@ -47,4 +47,4 @@ class PcapFile(File):
self.path,
other.path,
source='tcpdump',
)]
)]
......@@ -49,4 +49,4 @@ class PgpFile(File):
self.path,
other.path,
source='pgpdump',
)]
)]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment