From 2ee69edc8e5e2a0107c1321f9934fea29c0be02b Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Thu, 15 Mar 2018 15:54:37 -0400 Subject: [PATCH] snapshots: Fix generating screenshot after py3 conversion --- virtManager/snapshots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtManager/snapshots.py b/virtManager/snapshots.py index 3891f7d30..cf407ba17 100644 --- a/virtManager/snapshots.py +++ b/virtManager/snapshots.py @@ -394,7 +394,7 @@ class vmmSnapshotPage(vmmGObjectUI): flags = 0 mime = self.vm.get_backend().screenshot(stream, screen, flags) - ret = io.StringIO() + ret = io.BytesIO() def _write_cb(_stream, data, userdata): ignore = stream ignore = userdata