コード例 #1
0
 def __repr__(self):
     from tlvdef import TLV_NAME
     r = ''
     sign = (self._supercode, self._code)
     r += "DOCSIS_SUBCLASS {0}\n".format(
         TLV_NAME.get(self._uid, str(self._uid)))
     for i in self:
         r += ` i ` + "\n"
     return r
コード例 #2
0
 def __repr__(self):
     from tlvdef import TLV_NAME
     lside = "DOCS_{0._typeName} #({0._supercode:d}, {0.code:d}) {1}".format(
         self, TLV_NAME.get(self._uid, ""), self._typeName)
     return lside.ljust(50) + " := " + self.__reprval__()