2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

py: Manual fixlets of code formatting

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Radostin Stoyanov
2019-07-01 17:40:44 +03:00
committed by Andrei Vagin
parent c703e3fd84
commit 08f3b57ab3

View File

@@ -645,8 +645,7 @@ class coredump_generator:
ppid = self.pstree[pid]["ppid"]
return self._get_page(ppid, page_no)
else:
with open(self._imgs_dir + "/" + "pages-" + str(pages_id) +
".img") as f:
with open(self._imgs_dir + "/pages-%s.img" % pages_id) as f:
f.seek(off * PAGESIZE)
return f.read(PAGESIZE)