Skip to content

Commit

Permalink
* python3 fix (unicode vs string..)
Browse files Browse the repository at this point in the history
* replace confusing and misplaced "%s" used in join

git-svn-id: https://xpra.org/svn/Xpra/trunk@6178 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 27, 2014
1 parent 2475049 commit a085c75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/client/keyboard_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ def update_hash(self):
for x in (self.xkbmap_print, self.xkbmap_query, \
self.xkbmap_mod_meanings, self.xkbmap_mod_pointermissing, \
self.xkbmap_keycodes, self.xkbmap_x11_keycodes):
h.update("/%s" % str(x))
self.hash = "%s".join([str(x) for x in (self.xkbmap_layout, self.xkbmap_variant, h.hexdigest()) if bool(x)])
h.update(("/%s" % str(x)).encode("utf8"))
self.hash = "/".join([str(x) for x in (self.xkbmap_layout, self.xkbmap_variant, h.hexdigest()) if bool(x)])

def get_full_keymap(self):
return []
Expand Down

0 comments on commit a085c75

Please sign in to comment.