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@19815 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 2, 2018
1 parent 85d9dac commit 472c15b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/unittests/unit/server_test_util.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# This file is part of Xpra.
# Copyright (C) 2016-2017 Antoine Martin <[email protected]>
# Copyright (C) 2016-2018 Antoine Martin <[email protected]>
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.

Expand All @@ -11,7 +11,7 @@
import unittest
import subprocess
from xpra.util import envbool, envint, repr_ellipsized
from xpra.os_util import OSEnvContext, pollwait, osexpand, POSIX, WIN32
from xpra.os_util import OSEnvContext, pollwait, osexpand, bytestostr, POSIX, WIN32
from xpra.scripts.config import get_defaults
from xpra.platform.dotxpra import DotXpra
from xpra.platform.paths import get_xpra_command
Expand Down Expand Up @@ -98,7 +98,7 @@ def run_xpra(cls, xpra_args, env=None, **kwargs):
xpra_cmd = [cls.which("xpra")]
cmd = xpra_cmd + cls.default_xpra_args + xpra_args
pyexename = "python%i" % sys.version_info[0]
exe = xpra_cmd[0]
exe = bytestostr(xpra_cmd[0])
if exe.endswith(pyexename):
pass
elif WIN32 and exe.endswith("%s.exe" % pyexename):
Expand Down

0 comments on commit 472c15b

Please sign in to comment.