def version_to_int(self, version): version = version.split('.') for number in range(0, len(version)): version[number] = int(version[number]) return version
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]) + "."