cmd= isinstance(cmd,str) and c.replace('${ADDR}',ip) or cmd<br><br><br clear="all">Best Regards,<br> -- KDr2 <a href="http://kdr2.net">http://kdr2.net</a><br><br><br>
<br><br><div class="gmail_quote">On Fri, Feb 5, 2010 at 10:21 PM, mk <span dir="ltr"><<a href="mailto:mrkafk@gmail.com">mrkafk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
if isinstance(cmd, str):<br>
self.cmd = cmd.replace(r'${ADDR}',ip)<br>
else:<br>
self.cmd = cmd<br>
<br>
or<br>
<br>
self.cmd = cmd<br>
if isinstance(cmd, str):<br>
self.cmd = cmd.replace(r'${ADDR}',ip)<br><font color="#888888">
<br>
<br>
-- <br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>