Re: Fix for objname referenced before assigned error
Bram Moolenaar <[email protected]> Tue, 27 Dec 2005 17:49:29 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
> While futzing with AAP, I triggered a case where objname is referenced
> before it is assigned; looking at the code it's obvious that the
> assumption is that unused variables have value None -- but they don't,
> at least not in python 2.4. So here's a patch.
I suppose this happens in the case the object types are empty or only
containing "default".
I'll include the patch, thanks.
--=20
A village. Sound of chanting of Latin canon, punctuated by short, sha=
rp
cracks. It comes nearer. We see it is a line of MONKS ala SEVENTH SE=
AL
flagellation scene, chanting and banging themselves on the foreheads w=
ith
wooden boards.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURE=
S LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \=
\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ =
\\\
\\\ download, build and distribute -- http://www.A-A-P.org =
///
\\\ help me help AIDS victims -- http://www.ICCF.nl /=
//
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi=
les
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick