which

mk mrkafk at gmail.com
Fri Feb 5 09:21:05 EST 2010


if isinstance(cmd, str):
     self.cmd = cmd.replace(r'${ADDR}',ip)
else:
     self.cmd = cmd

or

self.cmd = cmd
if isinstance(cmd, str):
     self.cmd = cmd.replace(r'${ADDR}',ip)





More information about the Python-list mailing list