homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kxroberto
Recipients
Date 2004年10月13日.09:41:59
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I've always trouble shrinking a py2exe'd package,
because of this. its also a speed issue. urllib2 is
most time used only with http(s) ...?
*** urllib2_old.py	Tue May 11 16:14:34 2004
--- urllib2.py	Wed Oct 13 11:32:44 2004
*************** f = urllib2.urlopen('http://www.python.o
*** 88,95 ****
 # check digest against correct (i.e. non-apache)
implementation
 
 import base64
- import ftplib
- import gopherlib
 import httplib
 import inspect
 import md5
--- 88,93 ----
*************** class FileHandler(BaseHandler):
*** 1009,1014 ****
--- 1007,1013 ----
 
 class FTPHandler(BaseHandler):
 def ftp_open(self, req):
+ import ftplib
 host = req.get_host()
 if not host:
 raise IOError, ('ftp error', 'no host given')
*************** class CacheFTPHandler(FTPHandler):
*** 1110,1115 ****
--- 1109,1115 ----
 
 class GopherHandler(BaseHandler):
 def gopher_open(self, req):
+ import gopherlib
 host = req.get_host()
 if not host:
 raise GopherError('no host given')
History
Date User Action Args
2007年08月23日 14:26:39adminlinkissue1046077 messages
2007年08月23日 14:26:39admincreate

AltStyle によって変換されたページ (->オリジナル) /