diff options
author | elie <elie> | 2011-12-03 12:29:11 +0000 |
---|---|---|
committer | elie <elie> | 2011-12-03 12:29:11 +0000 |
commit | 329ac4867cde77199dcb3e59f9b134ae0fe619e9 (patch) | |
tree | 06cf4ec28701e1e32c9f7b0a3f006c838d5874c1 | |
parent | ac0f588aa8496957834ebd72d9b35d01d865a44d (diff) | |
download | pysnmp-329ac4867cde77199dcb3e59f9b134ae0fe619e9.tar.gz |
fixes to TextualConvention pretty printer
-rw-r--r-- | pysnmp/smi/mibs/SNMPv2-TC.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pysnmp/smi/mibs/SNMPv2-TC.py b/pysnmp/smi/mibs/SNMPv2-TC.py index 9e721e8..8411e81 100644 --- a/pysnmp/smi/mibs/SNMPv2-TC.py +++ b/pysnmp/smi/mibs/SNMPv2-TC.py @@ -151,10 +151,10 @@ class TextualConvention: # 'Unparsed display hint left: %s' % d # ) return r - elif self.displayHint and self.__objectIdentifier.isSuperTypeOf(self): - return str(value) + elif self.__objectIdentifier.isSuperTypeOf(self): + return self.__objectIdentifier.prettyOut(value) elif self.__octetString.isSuperTypeOf(self): - return repr(value) + return self.__octetString.prettyOut(value) else: return str(value) |