summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Shadura <andrew@shadura.me>2015-08-18 10:50:46 +0200
committerAndrew Shadura <andrew@shadura.me>2015-08-18 10:50:46 +0200
commit2ec6f1d39499c8bd008b5c69ca14f255029853ab (patch)
tree11e2db96995d4e5eb00a9b15070fb695d3153de0
parenta1d346c99191ec21f7f9d78d050b764a671e8ffe (diff)
Apply the patch.debian/0.14+20091101-4
-rw-r--r--Xlib/xauth.py5
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 = {}