summaryrefslogtreecommitdiff
path: root/runtest.py
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2014-04-20 06:56:10 -0400
committerGary Oberbrunner <garyo@oberbrunner.com>2014-04-20 06:56:10 -0400
commit870051cadd1c32f41bc3d52feb741201919a11ac (patch)
tree9ae8e8c70a00a9de2dd37755f7690af833e8f26b /runtest.py
parent86bd16133f12ecdab6fa204d79d7a4c5e52df531 (diff)
downloadscons-870051cadd1c32f41bc3d52feb741201919a11ac.tar.gz
Added six module as SCons.compat.six, for python3 port.
Diffstat (limited to 'runtest.py')
-rwxr-xr-xruntest.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/runtest.py b/runtest.py
index 71555563..485374a3 100755
--- a/runtest.py
+++ b/runtest.py
@@ -81,7 +81,6 @@
# rather than reinventing that wheel.)
from __future__ import print_function
-from six import PY3
import getopt
import glob
@@ -93,9 +92,9 @@ import time
try:
import threading
- if PY3:
+ try: # python3
from queue import Queue
- else:
+ except ImportError as e: # python2
from Queue import Queue
threading_ok = True
except ImportError: