RE: net-snmp python binding bug

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC0EB566DB@mailserver.metatv-ds.metatv.com>
> From: jessinio liang [mailto:[email protected]]
> 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

------------------------------------------------------------------------------
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.