(self, oid)
return "'{}': {}".format(key.prettyPrint(), value.replace('\x00', ''))
Display an OID object and its associated value.

        Output:
            '1.3.4.5.6': 57
Display an OID object and its associated value.
Display an OID object and its associated value .
def oid_str_value(self, oid):
        # type: (ObjectType) -> str
        """Display an OID object and its associated value.

        Output:
            '1.3.4.5.6': 57
        """
        if noSuchInstance.isSameTypeWith(oid[1]):
            value = "'NoSuchInstance'"
        elif endOfMibView.isSameTypeWith(oid[1]):
            value = "'EndOfMibView'"
        else:
            value = oid[1].prettyPrint()
            try:
                value = str(int(value))
            except (TypeError, ValueError):
                value = "'{}'".format(value)
        key = oid[0]
        if not isinstance(key, ObjectName):
            key = key.getOid()
        return "'{}': {}".format(key.prettyPrint(), value.replace('\x00', ''))
def oid_str_value ( self , oid ) : # type: (ObjectType) -> str if noSuchInstance . isSameTypeWith ( oid [ 1 ] ) : value = "'NoSuchInstance'" elif endOfMibView . isSameTypeWith ( oid [ 1 ] ) : value = "'EndOfMibView'" else : value = oid [ 1 ] . prettyPrint ( ) try : value = str ( int ( value ) ) except ( TypeError , ValueError ) : value = "'{}'" . format ( value ) key = oid [ 0 ] if not isinstance ( key , ObjectName ) : key = key . getOid ( ) return "'{}': {}" . format ( key . prettyPrint ( ) , value . replace ( '\x00' , '' ) )