urllib.urlopen("file://...") fails

Denis S. Otkidach ods at fep.ru
Thu Apr 25 12:02:07 EDT 2002


On Thu, 25 Apr 2002, Seth Delackner wrote:

SD> Fernando P?rez <fperez528 at yahoo.com> writes:
SD>
SD> > Seth Delackner wrote:
SD> >>>>> u = urllib.urlopen("file:///t:/tmp/package.html")
SD> >                                 ^
SD> >
SD> > One / too many? You're directing it to \t:\.... which it
SD> obviously
SD> > can't find.
SD> >
SD> > I don't run windows so I can't test so I may be wrong. It
SD> just looks
SD> > like that is your problem.
SD>
SD> You would think, right?  But I just tried
SD> 'file://t:/tmp/package.html'

I guess it should be something like 'file://t|/tmp/package.html'.






More information about the Python-list mailing list