From e1d9de1cc285b2b8b597b76bbddbbb27946ed6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 25 Sep 2016 23:00:46 +0200 Subject: [PATCH] tests/backup: minor fix for python3 --- qubes/tests/int/backup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubes/tests/int/backup.py b/qubes/tests/int/backup.py index 6d3e6827..1c8a3103 100644 --- a/qubes/tests/int/backup.py +++ b/qubes/tests/int/backup.py @@ -86,7 +86,7 @@ class BackupTestsMixin(qubes.tests.SystemTestsMixin): size = f.tell() f.seek(0) - for block_num in xrange(size/block_size): + for block_num in range(size/block_size): f.write('a' * block_size) if sparse: f.seek(block_size, 1) @@ -183,7 +183,7 @@ class BackupTestsMixin(qubes.tests.SystemTestsMixin): restore_op = qubes.backup.BackupRestore( self.app, backupfile, appvm, "qubes") if options: - for key, value in options.iteritems(): + for key, value in options.items(): setattr(restore_op.options, key, value) restore_info = restore_op.get_restore_info() self.log.debug(restore_op.get_restore_summary(restore_info))