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

Seth Delackner seth at jtan.com
Thu Apr 25 12:54:03 EDT 2002


"Denis S. Otkidach" <ods at fep.ru> writes:

> 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'.

Sorry, that also dies (although IE also accepts that format).  It is
erroneously identifying this as an ftp url.






More information about the Python-list mailing list