Apply the patch.

parent a1d346c9
......@@ -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 = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment