jenkins-bot has submitted this change and it was merged.
Change subject: Import Queue: fix for python 3 ......................................................................
Import Queue: fix for python 3
Original patch (using six) by Aaron Hill
Change-Id: I58970010bccbc675eeb494b3ff7b40fe0d314dd3 --- M pywikibot/__init__.py 1 file changed, 5 insertions(+), 1 deletion(-)
Approvals: Merlijn van Deen: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py index 34f7958..92e9d63 100644 --- a/pywikibot/__init__.py +++ b/pywikibot/__init__.py @@ -17,7 +17,11 @@ import re import sys import threading -from Queue import Queue + +try: + from queue import Queue +except ImportError: + from Queue import Queue
# Use pywikibot. prefix for all in-package imports; this is to prevent # confusion with similarly-named modules in version 1 framework, for users
pywikibot-commits@lists.wikimedia.org