Don Taylor wrote:
if False:
from org.python.pydev.editor import PyEdit [EMAIL PROTECTED]
cmd = 'command string'
editor = PyEdit
sorts out cmd and editor, but at the expense of another False failure.
One way of getting rid of all of the True/False warnings in Pydev
extensions is to use:
if False: [EMAIL PROTECTED]
# None of this code will be executed, but it will stop Pydev
# extensions from complaining about undefined variables.
from org.python.pydev.editor import PyEdit [EMAIL PROTECTED]
cmd = 'command string'
editor = PyEdit
False = False [EMAIL PROTECTED]
True = True [EMAIL PROTECTED]
any further uses of True or False will not cause undefined variable
errors because of these bogus assignments.
Don.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
pydev-code mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-code