summaryrefslogtreecommitdiff
path: root/pysnmp/smi/mibs/SNMPv2-TC.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysnmp/smi/mibs/SNMPv2-TC.py')
-rw-r--r--pysnmp/smi/mibs/SNMPv2-TC.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pysnmp/smi/mibs/SNMPv2-TC.py b/pysnmp/smi/mibs/SNMPv2-TC.py
index 9df2f586..e4857b31 100644
--- a/pysnmp/smi/mibs/SNMPv2-TC.py
+++ b/pysnmp/smi/mibs/SNMPv2-TC.py
@@ -29,8 +29,7 @@ Counter32, Unsigned32, TimeTicks, Counter64 = mibBuilder.importSymbols(
)
-# XXX keep this old-style class till pyasn1 types becomes new-style
-class TextualConvention:
+class TextualConvention(object):
displayHint = ''
status = 'current'
description = ''
@@ -200,7 +199,7 @@ class TextualConvention:
input meaning `unicode` (Py2) or `str` (Py3).
"""
for base in inspect.getmro(self.__class__):
- if base != self.__class__ and issubclass(base, Asn1Item):
+ if not issubclass(base, TextualConvention) and issubclass(base, Asn1Item):
break
else:
raise SmiError('TEXTUAL-CONVENTION has no underlying SNMP base type')