From 0605d2e54160580d65ed2e4f6f587e10876d32a8 Mon Sep 17 00:00:00 2001 From: Stefan Zimmermann Date: Wed, 8 Jan 2014 13:25:16 +0000 Subject: Some more six.PY2/PY3 usage. --- runtest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'runtest.py') diff --git a/runtest.py b/runtest.py index 2470a618..63802928 100755 --- a/runtest.py +++ b/runtest.py @@ -85,6 +85,8 @@ # rather than reinventing that wheel.) from __future__ import print_function +from six import PY3 + import getopt import glob import os @@ -95,9 +97,9 @@ import time try: import threading - try: + if PY3: from queue import Queue - except ImportError: # Python < 3 + else: from Queue import Queue threading_ok = True except ImportError: -- cgit v1.2.1