Do you meaning:
File "netsnmp/client.py", line 38
print stderr "ERROR: unknown key", key
??
On Thu, Jul 1, 2010 at 12:23 AM, Mike Ayers <mike_ay...@tva.tvworks.com>wrote:
> > From: jessinio liang [mailto:jessi...@gmail.com]
> > Sent: Wednesday, June 30, 2010 7:36 AM
>
> > file : ./python/netsnmp/client.py
> >
> > code:
> > 34 for key in keys:
> > 35 if sessArgs.has_key(key):
> > 36 sessArgs[key] = kargs[key]
> > 37 else:
> > 38 print stderr, "ERROR: unknown key", key
> > 39 return sessArgs
> >
> >
> > "stderr" Not defined before use
> >
> > after remove "stderr" if OK.
>
> IIRC, you need only remove the comma after "stderr", and it will
> print the rest to the stderr channel.
>
>
> HTH,
>
> Mike
>
>
--
--
梁庆喜 jessi...@gmail.com
Mobile: 18675608050
Email: jessi...@gmail.com
MSN: jessi...@163.com
Blog: http://blog.jessinio.info
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users