Skip to content

Commit

Permalink
python3 fix: no need to check for unicode..
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@6314 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 2, 2014
1 parent b6f860a commit fa9643f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/xpra/client/ui_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@
UNGRAB_KEY = os.environ.get("XPRA_UNGRAB_KEY", "Escape")


if sys.version > '3':
unicode = str #@ReservedAssignment


"""
Utility superclass for client classes which have a UI.
See gtk_client_base and its subclasses.
Expand Down
2 changes: 1 addition & 1 deletion src/xpra/os_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def strtobytes(x):
return x
return x.encode()
def bytestostr(x):
if type(x) in (str, unicode):
if type(x)==str:
return x
return x.decode()

Expand Down

0 comments on commit fa9643f

Please sign in to comment.