diff options
author | elie <elie> | 2005-07-27 16:08:41 +0000 |
---|---|---|
committer | elie <elie> | 2005-07-27 16:08:41 +0000 |
commit | de798a788959212b6ad56d523bab4ad12a9845af (patch) | |
tree | 316075b5071b33d256430337f2d5da11eabfa9ea | |
parent | 0446a8126408a25b28dc252f222220e3fdfdc72e (diff) | |
download | pysnmp-de798a788959212b6ad56d523bab4ad12a9845af.tar.gz |
missing module fixed
-rw-r--r-- | pysnmp/smi/mibs/SNMPv2-SMI.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pysnmp/smi/mibs/SNMPv2-SMI.py b/pysnmp/smi/mibs/SNMPv2-SMI.py index 4c863db..ee7104c 100644 --- a/pysnmp/smi/mibs/SNMPv2-SMI.py +++ b/pysnmp/smi/mibs/SNMPv2-SMI.py @@ -1,4 +1,4 @@ -from string import join, split +import string from pysnmp.smi.indices import OidOrderedDict from pysnmp.smi import exval, error from pysnmp.proto import rfc1902 @@ -610,7 +610,7 @@ class MibTableRow(MibTree): if self.__intValue.isSuperTypeOf(obj): return obj.clone(value[0]), value[1:] elif self.__ipaddrValue.isSuperTypeOf(obj): - return obj.clone(join(map(str, value[:4]), '.')), value[4:] + return obj.clone(string.join(map(str, value[:4]), '.')), value[4:] elif self.__strValue.isSuperTypeOf(obj): if impliedFlag: s = reduce(lambda x,y: x+y, map(lambda x: chr(x), value)) @@ -645,7 +645,7 @@ class MibTableRow(MibTree): else: return (len(self.name),) + tuple(obj) elif self.__ipaddrValue.isSuperTypeOf(obj): - return tuple(map(int, obj)) + return tuple(map(ord, obj)) else: raise error.SmiError('Unknown value type for index %s' % repr(obj)) # return obj |