Skip to content

Commit 5355c45

Browse files
committed
xauth: Python 3 support
1 parent ebb70c3 commit 5355c45

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Xlib/xauth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __getitem__(self, i):
9696
return self.entries[i]
9797

9898
def get_best_auth(self, family, address, dispno,
99-
types = ( "MIT-MAGIC-COOKIE-1", )):
99+
types = ( b"MIT-MAGIC-COOKIE-1", )):
100100

101101
"""Find an authentication entry matching FAMILY, ADDRESS and
102102
DISPNO.
@@ -109,7 +109,7 @@ def get_best_auth(self, family, address, dispno,
109109
otherwise XNoAuthError is raised.
110110
"""
111111

112-
num = str(dispno)
112+
num = str(dispno).encode()
113113

114114
matches = {}
115115

0 commit comments

Comments
 (0)