snapshots: Fix generating screenshot after py3 conversion

This commit is contained in:
Cole Robinson 2018-03-15 15:54:37 -04:00
parent 20d5c1887a
commit 2ee69edc8e

View File

@ -394,7 +394,7 @@ class vmmSnapshotPage(vmmGObjectUI):
flags = 0 flags = 0
mime = self.vm.get_backend().screenshot(stream, screen, flags) mime = self.vm.get_backend().screenshot(stream, screen, flags)
ret = io.StringIO() ret = io.BytesIO()
def _write_cb(_stream, data, userdata): def _write_cb(_stream, data, userdata):
ignore = stream ignore = stream
ignore = userdata ignore = userdata