daemon/core/emane/emane.py
def emane074_fixup(cls, value, div=1.0):
        ''' Helper for converting 0.8.1 and newer values to EMANE 0.7.4
        compatible values.
        NOTE: This should be removed when support for 0.7.4 has been
        deprecated.
        '''
        if div == 0:
            return "0"
        if type(value) is not str:
            return str(value / div)
        if value.endswith(tuple(cls._prefix.keys())):
            suffix = value[-1]
            value = float(value[:-1]) * cls._prefix[suffix]
        return str(int(value / div))
 Helper for converting 0.8.1 and newer values to EMANE 0.7.4
        compatible values.
        NOTE: This should be removed when support for 0.7.4 has been
        deprecated.
        
Helper for converting 0.8.1 and newer values to EMANE 0.7.4
compatible values.
NOTE: This should be removed when support for 0.7.4 has been
deprecated.
Helper for converting 0 . 8 . 1 and newer values to EMANE 0 . 7 . 4 compatible values . NOTE : This should be removed when support for 0 . 7 . 4 has been deprecated .
def emane074_fixup(cls, value, div=1.0):
        if div == 0:
            return "0"
        if type(value) is not str:
            return str(value / div)
        if value.endswith(tuple(cls._prefix.keys())):
            suffix = value[-1]
            value = float(value[:-1]) * cls._prefix[suffix]
        return str(int(value / div))
def emane074_fixup ( cls , value , div = 1.0 ) : if div == 0 : return "0" if type ( value ) is not str : return str ( value / div ) if value . endswith ( tuple ( cls . _prefix . keys ( ) ) ) : suffix = value [ - 1 ] value = float ( value [ : - 1 ] ) * cls . _prefix [ suffix ] return str ( int ( value / div ) )
Helper for converting 0.8.1 and newer values to EMANE 0.7.4
compatible values.
Helper for converting 0 . 8 . 1 and newer values to EMANE 0 . 7 . 4 compatible values .
''' Helper for converting 0.8.1 and newer values to EMANE 0.7.4
        compatible values.
        NOTE: This should be removed when support for 0.7.4 has been
        deprecated.
        '''
cls
value
div