Skip to content

Commit 29b3cf9

Browse files
committed
Make WaitToken Python 3 compatible
1 parent 3526ec4 commit 29b3cf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mwclient/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def parse_timestamp(t):
4343
class WaitToken(object):
4444

4545
def __init__(self):
46-
self.id = '%x' % random.randint(0, sys.maxint)
46+
self.id = '%032x' % random.getrandbits(128)
4747

4848
def __hash__(self):
4949
return hash(self.id)

0 commit comments

Comments
 (0)