(self, version)
return int(version_int)
Convert version string to integer
Convert version string to integer
Convert version string to integer
def _version2int(self, version):
        """Convert version string to integer"""
        version_int = 0
        factor = 1000 * 1000
        for vitem in _str(version).strip().split('.'):
            try:
                version_int = version_int + (int(vitem) * factor)
            except (TypeError, ValueError):
                pass
            factor = factor / 1000
        return int(version_int)
def _version2int ( self , version ) : version_int = 0 factor = 1000 * 1000 for vitem in _str ( version ) . strip ( ) . split ( '.' ) : try : version_int = version_int + ( int ( vitem ) * factor ) except ( TypeError , ValueError ) : pass factor = factor / 1000 return int ( version_int )