Re: net-snmp python binding bug

jessinio liang <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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 <[email protected]>wrote:

> > 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
>
>


-- 
-- 
梁庆喜 [email protected]
Mobile: 18675608050
Email: [email protected]
MSN: [email protected]
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
[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.