Skip to content

Commit

Permalink
#853: python3 needs bytes here
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@20824 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 25, 2018
1 parent c2339fa commit 156c471
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/x11/prop_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from xpra.log import Logger
log = Logger("x11", "window")

from xpra.os_util import hexstr, StringIOClass, PYTHON3
from xpra.os_util import hexstr, BytesIOClass, PYTHON3
from xpra.x11.bindings.window_bindings import constants #@UnresolvedImport
from xpra.x11.bindings.window_bindings import X11WindowBindings #@UnresolvedImport
X11Window = X11WindowBindings()
Expand Down Expand Up @@ -243,7 +243,7 @@ def _read_image(_disp, stream):
# a _NET_WM_ICON property.
def NetWMIcons(disp, data):
icons = []
stream = StringIOClass(data)
stream = BytesIOClass(data)
while True:
size_image = _read_image(disp, stream)
if size_image is None:
Expand Down

0 comments on commit 156c471

Please sign in to comment.