qcow2_format.py: drop new line printing at end of dump()

This will simplify further conversion. To compensate, print this empty
line directly in cmd_dump_header().

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Message-Id: <20200606081806.23897-5-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Vladimir Sementsov-Ogievskiy 2020-06-06 11:17:57 +03:00 committed by Eric Blake
parent d5262c7124
commit eeafed5f6e
2 changed files with 1 additions and 1 deletions

View File

@ -27,6 +27,7 @@ from qcow2_format import (
def cmd_dump_header(fd):
h = QcowHeader(fd)
h.dump()
print()
h.dump_extensions()

View File

@ -155,7 +155,6 @@ class QcowHeader:
value_str = f[1] % value
print("%-25s" % f[2], value_str)
print("")
def dump_extensions(self):
for ex in self.extensions: