示例#1
0
 def version_to_int(self, version):
     version = version.split('.')
     for number in range(0, len(version)):
         version[number] = int(version[number])
     return version
示例#2
0
 def version_to_int(self, version):
     version = version.split('.')
     for number in range(0, len(version)):
         version[number] = int(version[number])
     return version
示例#3
0
def version_ui_name(browser, version):
    fields = version.split(".")
    n = 2 if browser.startswith("firefox") else 1 # Use minor version only in FF
    return ".".join(fields[:n]) + "."