From 29b3cf9ed883dbbca2d79325b8961dd5b3e8d1ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Michael=20O=2E=20Hegg=C3=B8?= <danmichaelo@gmail.com>
Date: Fri, 17 Jul 2015 23:58:46 +0200
Subject: [PATCH] Make WaitToken Python 3 compatible

---
 mwclient/client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mwclient/client.py b/mwclient/client.py
index d4e1266..8e048f5 100644
--- a/mwclient/client.py
+++ b/mwclient/client.py
@@ -43,7 +43,7 @@ def parse_timestamp(t):
 class WaitToken(object):
 
     def __init__(self):
-        self.id = '%x' % random.randint(0, sys.maxint)
+        self.id = '%032x' % random.getrandbits(128)
 
     def __hash__(self):
         return hash(self.id)
-- 
GitLab