Skip to content

Commit

Permalink
fixup r16399: python3 fix broke python2..
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@16400 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 18, 2017
1 parent d873432 commit 9506c91
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/xpra/codecs/nvenc/encoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1076,9 +1076,8 @@ cdef GUID c_parseguid(src) except *:
b = array.array('B', (binascii.unhexlify(parts[i]))).tostring()
v = 0
for j in range(s):
if PYTHON3:
c = b[j]
else:
c = b[j]
if not PYTHON3:
c = ord(c)
v += c<<((s-j-1)*8)
nparts.append(v)
Expand Down

0 comments on commit 9506c91

Please sign in to comment.