diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-03-18 21:59:41 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2017-03-18 21:59:41 +0100 |
commit | 5341a7b1ffc967afebd4f0d77549896f2d6b063d (patch) | |
tree | 5b04ae8edd77bdd7ed7aec208d50d48cab3bea98 | |
parent | ed5d607ec3f5644067a527db9756772ad3f83c44 (diff) | |
download | pysnmp-git-5341a7b1ffc967afebd4f0d77549896f2d6b063d.tar.gz |
another fix to TextualConversion infinite recursion
-rw-r--r-- | pysnmp/smi/mibs/SNMPv2-TC.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pysnmp/smi/mibs/SNMPv2-TC.py b/pysnmp/smi/mibs/SNMPv2-TC.py index e4857b31..17d3e2d0 100644 --- a/pysnmp/smi/mibs/SNMPv2-TC.py +++ b/pysnmp/smi/mibs/SNMPv2-TC.py @@ -183,7 +183,7 @@ class TextualConvention(object): return outputValue for base in inspect.getmro(self.__class__): - if base != self.__class__ and issubclass(base, Asn1Item): + if not issubclass(base, TextualConvention) and issubclass(base, Asn1Item): return base.prettyOut(self, value) raise SmiError('TEXTUAL-CONVENTION has no underlying SNMP base type') |