diff --git a/wscript b/wscript index e2dd3d7f..ce60a1ed 100644 --- a/wscript +++ b/wscript @@ -1,8 +1,11 @@ #! /usr/bin/env python # encoding: utf-8 -from urllib2 import urlopen # Python 2 -# from urllib.request import urlopen # Python 3 +try: + from urllib2 import urlopen # Python 2 +except ImportError: + from urllib.request import urlopen # Python 3 + import os.path from subprocess import call import sys