Re: Caching of ftp connections
Bram Moolenaar <[email protected]> Mon, 08 Mar 2004 11:20:01 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Yakov Lerner wrote:
> Bram Moolenaar wrote:
> > Jacob Lerner complained about ftp download not working with Python 1.5.
> > ... A zip archive is
> > available here: http://www.a-a-p.org/files/aap-latest.zip
>
> Thanks, it works now under python 1.5.2.
I'm glad you kept on reporting the problems you encountered.
> Only it bombs out if ~/.netrc does not contain an entry for the server
> (the ftp.vim.org), with ugly output. The output is below.
This patch should fix that:
*** aapnetrc.py~ Thu Mar 4 17:15:21 2004
--- aapnetrc.py Mon Mar 8 10:46:13 2004
***************
*** 89,95 ****
"""Return a (user, account, password) tuple for given host."""
if host in self.hosts.keys():
return self.hosts[host]
! elif 'default' in self.hosts:
return self.hosts['default']
else:
return None
--- 89,95 ----
"""Return a (user, account, password) tuple for given host."""
if host in self.hosts.keys():
return self.hosts[host]
! elif 'default' in self.hosts.keys():
return self.hosts['default']
else:
return None
--
NEIL INNES PLAYED: THE FIRST SELF-DESTRUCTIVE MONK, ROBIN'S LEAST FAVORITE
MINSTREL, THE PAGE CRUSHED BY A RABBIT, THE OWNER OF A DUCK
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click