mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-05 00:35:23 +00:00
crit: make crit python2/python3 compatible
Signed-off-by: Adrian Reber <areber@redhat.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
e61309a7c6
commit
98cb5c627d
@@ -44,7 +44,7 @@ def main(argv):
|
||||
out.write('#Autogenerated. Do not edit!\n')
|
||||
out.write('by_name = {}\n')
|
||||
out.write('by_val = {}\n')
|
||||
for k,v in magic.items():
|
||||
for k,v in list(magic.items()):
|
||||
# We don't need RAW or V1 magic, because
|
||||
# they can't be used to identify images.
|
||||
if v == '0x0' or v == '1' or k == '0x0' or v == '1':
|
||||
|
Reference in New Issue
Block a user