setup.py: fix download of T1 files in python3 py33
authorrobin
Thu, 01 Aug 2013 17:35:55 +0100
branchpy33
changeset 3764 010823faf496
parent 3763 d079e73fb7b0
child 3765 a7e7cd6e0003
setup.py: fix download of T1 files in python3
setup.py
--- a/setup.py	Thu Aug 01 17:17:38 2013 +0100
+++ b/setup.py	Thu Aug 01 17:35:55 2013 +0100
@@ -232,7 +232,7 @@
         infoline("Downloading standard T1 font curves")
 
         remotehandle = urllib.request.urlopen("http://www.reportlab.com/ftp/pfbfer-20070710.zip")
-        zipdata = io.StringIO(remotehandle.read())
+        zipdata = io.BytesIO(remotehandle.read())
         remotehandle.close()
         archive = zipfile.ZipFile(zipdata)
         dst = pjoin(rl_dir, 'fonts')