From 029986af249f71a5603110a0f5f0b18d0f335828 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 23 Jun 2008 11:44:14 +0000 Subject: Fix old urllib/urllib2/urlparse usage. --- Mac/BuildScript/build-installer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Mac/BuildScript/build-installer.py') diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py index 8e359bae1c..61560728cc 100755 --- a/Mac/BuildScript/build-installer.py +++ b/Mac/BuildScript/build-installer.py @@ -9,7 +9,8 @@ bootstrap issues (/usr/bin/python is Python 2.3 on OSX 10.4) Usage: see USAGE variable in the script. """ -import platform, os, sys, getopt, textwrap, shutil, urllib2, stat, time, pwd +import platform, os, sys, getopt, textwrap, shutil, stat, time, pwd +import urllib.request import grp INCLUDE_TIMESTAMP = 1 @@ -442,7 +443,7 @@ def downloadURL(url, fname): if KNOWNSIZES.get(url) == size: print("Using existing file for", url) return - fpIn = urllib2.urlopen(url) + fpIn = urllib.request.urlopen(url) fpOut = open(fname, 'wb') block = fpIn.read(10240) try: -- cgit v1.2.1