summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorStefan Zimmermann <zimmermann.code@gmail.com>2014-01-08 13:25:16 (GMT)
committerStefan Zimmermann <zimmermann.code@gmail.com>2014-01-08 13:25:16 (GMT)
commit26003a0bd3168f8c2ee3d92a26d35ca977f8e25b (patch)
tree5f61654ad672dbaaef043c67f2d5b74254e2abca /bin
parent59ee07b24ed1278d83aa70605f51b6284aa60a82 (diff)
downloadSCons-26003a0bd3168f8c2ee3d92a26d35ca977f8e25b.zip
SCons-26003a0bd3168f8c2ee3d92a26d35ca977f8e25b.tar.gz
SCons-26003a0bd3168f8c2ee3d92a26d35ca977f8e25b.tar.bz2
Some more six.PY2/PY3 usage.
Diffstat (limited to 'bin')
-rw-r--r--bin/install_scons.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/install_scons.py b/bin/install_scons.py
index 7a39e96..afd0789 100644
--- a/bin/install_scons.py
+++ b/bin/install_scons.py
@@ -19,14 +19,16 @@
# hierarchy.
from __future__ import print_function
+from six import PY3
+
import getopt
import os
import shutil
import sys
import tarfile
-try:
+if PY3:
from urllib.request import urlretrieve
-except ImportError: # Python < 3
+else:
from urllib import urlretrieve
from Command import CommandRunner, Usage