MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / version_str_to_tuple

Function version_str_to_tuple

scripts/check_modules.py:260–264  ·  view source on GitHub ↗
(ver_str)

Source from the content-addressed store, hash-verified

258
259
260def version_str_to_tuple(ver_str):
261 ver_str = ver_str.split("+")[0]
262 ver_str = re.sub("[^0-9.]", "", ver_str)
263 ver = ver_str.split(".")
264 return tuple(map(int, ver))
265
266
267### utilities

Callers 1

update_modulesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected