summaryrefslogtreecommitdiff
path: root/pysnmp/proto/proxy
diff options
context:
space:
mode:
authorelie <elie>2011-11-06 20:37:09 +0000
committerelie <elie>2011-11-06 20:37:09 +0000
commitf0406dd01c46230ebbcd4f8c4a47fdbc270e64ef (patch)
treecae924c26bc40e6caafde18e657ab7fbb8794bbe /pysnmp/proto/proxy
parent6781949a085961ff2eb6f4603a52249e99c4ce7d (diff)
downloadpysnmp-git-f0406dd01c46230ebbcd4f8c4a47fdbc270e64ef.tar.gz
major overhawl aimed at Python 2.4 through 3.2 compatibility
Diffstat (limited to 'pysnmp/proto/proxy')
-rw-r--r--pysnmp/proto/proxy/rfc2576.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pysnmp/proto/proxy/rfc2576.py b/pysnmp/proto/proxy/rfc2576.py
index e2554fc4..470043ae 100644
--- a/pysnmp/proto/proxy/rfc2576.py
+++ b/pysnmp/proto/proxy/rfc2576.py
@@ -159,7 +159,7 @@ def v1ToV2(v1Pdu, origV2Pdu=None):
# 4.1.2.1 --> no-op
if pduType not in rfc3411.notificationClassPDUs:
- v2c.apiPDU.setRequestID(v2Pdu, long(v1.apiPDU.getRequestID(v1Pdu)))
+ v2c.apiPDU.setRequestID(v2Pdu, int(v1.apiPDU.getRequestID(v1Pdu)))
v2c.apiPDU.setVarBinds(v2Pdu, v2VarBinds)