diff options
author | Andrew Shadura <andrew@shadura.me> | 2015-08-18 10:50:46 +0200 |
---|---|---|
committer | Andrew Shadura <andrew@shadura.me> | 2015-08-18 10:50:46 +0200 |
commit | 2ec6f1d39499c8bd008b5c69ca14f255029853ab (patch) | |
tree | 11e2db96995d4e5eb00a9b15070fb695d3153de0 | |
parent | a1d346c99191ec21f7f9d78d050b764a671e8ffe (diff) |
Apply the patch.debian/0.14+20091101-4
-rw-r--r-- | Xlib/xauth.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Xlib/xauth.py b/Xlib/xauth.py index 5c1c5de..dc3f4e0 100644 --- a/Xlib/xauth.py +++ b/Xlib/xauth.py @@ -98,7 +98,7 @@ class Xauthority: return self.entries[i] def get_best_auth(self, family, address, dispno, - types = ( "MIT-MAGIC-COOKIE-1", )): + types = ( b"MIT-MAGIC-COOKIE-1", )): """Find an authentication entry matching FAMILY, ADDRESS and DISPNO. @@ -111,7 +111,8 @@ class Xauthority: otherwise XNoAuthError is raised. """ - num = str(dispno) + num = str(dispno).encode() + address = address.encode() matches = {} |