MCPcopy Create free account
hub / github.com/ipython/ipython / check_version

Function check_version

IPython/utils/version.py:25–35  ·  view source on GitHub ↗

check version string v >= check If dev/prerelease tags result in TypeError for string-number comparison, it is assumed that the dependency is satisfied. Users on dev branches are responsible for keeping their own packages up to date.

(v, check)

Source from the content-addressed store, hash-verified

23#-----------------------------------------------------------------------------
24
25def check_version(v, check):
26 """check version string v >= check
27
28 If dev/prerelease tags result in TypeError for string-number comparison,
29 it is assumed that the dependency is satisfied.
30 Users on dev branches are responsible for keeping their own packages up to date.
31 """
32 try:
33 return LooseVersion(v) >= LooseVersion(check)
34 except TypeError:
35 return True
36

Callers 3

has_bindingFunction · 0.90
import_pyqt4Function · 0.90
get_optionsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected