diff options
author | elie <elie> | 2011-03-15 17:08:38 +0000 |
---|---|---|
committer | elie <elie> | 2011-03-15 17:08:38 +0000 |
commit | eb00fe78ba948cadeb0b7a5b8b08b92f64d42055 (patch) | |
tree | bf366365e34e100037520e46058b54b55a75b5a1 | |
parent | 5f54bab3a49eb565aae51fef980339e7311ff674 (diff) | |
download | pysnmp-eb00fe78ba948cadeb0b7a5b8b08b92f64d42055.tar.gz |
attempt to handle non-printable chars at TextualConvention.prettyOut
-rw-r--r-- | pysnmp/smi/mibs/SNMPv2-TC.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pysnmp/smi/mibs/SNMPv2-TC.py b/pysnmp/smi/mibs/SNMPv2-TC.py index 15e0bb7..a662aa1 100644 --- a/pysnmp/smi/mibs/SNMPv2-TC.py +++ b/pysnmp/smi/mibs/SNMPv2-TC.py @@ -147,6 +147,8 @@ class TextualConvention: return r elif self.displayHint and self.__objectIdentifier.isSuperTypeOf(self): return str(value) + elif self.__octetString.isSuperTypeOf(self): + return repr(value) else: return str(value) |