diff options
author | Stefan Zimmermann <zimmermann.code@gmail.com> | 2014-01-08 13:25:16 +0000 |
---|---|---|
committer | Stefan Zimmermann <zimmermann.code@gmail.com> | 2014-01-08 13:25:16 +0000 |
commit | 0605d2e54160580d65ed2e4f6f587e10876d32a8 (patch) | |
tree | 5f61654ad672dbaaef043c67f2d5b74254e2abca /bin | |
parent | 78ce49b5b52d41ddccf41986faba5f1d2ddc8804 (diff) | |
download | scons-0605d2e54160580d65ed2e4f6f587e10876d32a8.tar.gz |
Some more six.PY2/PY3 usage.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/install_scons.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/install_scons.py b/bin/install_scons.py index 7a39e963..afd0789c 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 |