summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README3
1 files changed, 2 insertions, 1 deletions
diff --git a/README b/README
index 9293c1e..54b6632 100644
--- a/README
+++ b/README
@@ -70,7 +70,8 @@ from pysnmp.entity.rfc3413.oneliner import cmdgen
userData = cmdgen.UsmUserData('test-user', 'authkey1', 'privkey1')
targetAddr = cmdgen.UdpTransportTarget(('localhost', 161))
-errorIndication, errorStatus, errorIndex, varBinds = cmdgen.CmdGen().getCmd(
+errorIndication, errorStatus, \
+ errorIndex, varBinds = cmdgen.CommandGenerator().getCmd(
userData, targetAddr, (('SNMPv2-MIB', 'sysDescr'), 0)
)