Skip to content

Commit

Permalink
python3 strings byte us again
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@20832 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 25, 2018
1 parent 4b11fa3 commit 826e0d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/xpra/clipboard/clipboard_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,11 @@ def _munge_wire_selection_to_raw(self, encoding, dtype, dformat, data):
if len(data or "")==0:
return ""
if dformat == 32:
format_char = "L"
format_char = b"L"
elif dformat == 16:
format_char = "H"
format_char = b"H"
elif dformat == 8:
format_char = "B"
format_char = b"B"
else:
raise Exception("unknown encoding format: %s" % dformat)
fstr = b"@" + format_char * len(data)
Expand Down

0 comments on commit 826e0d1

Please sign in to comment.