(self)
return float(major_minor)
Returns an floating point version like 7.2, ignoring maintaince/build numbers
Returns an floating point version like 7.2, ignoring maintaince/build numbers
Returns an floating point version like 7 . 2 ignoring maintaince / build numbers
def os_version_number(self):
        """ Returns an floating point version like 7.2, ignoring maintaince/build numbers """
        info = self.os_distribution_info()
        if info is None:
            return 0
        tokens = info['version'].split('.')
        major_minor = "%s.%s" % (tokens[0], tokens[1])
        return float(major_minor)
def os_version_number ( self ) : info = self . os_distribution_info ( ) if info is None : return 0 tokens = info [ 'version' ] . split ( '.' ) major_minor = "%s.%s" % ( tokens [ 0 ] , tokens [ 1 ] ) return float ( major_minor )