Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _check_flavio_version():
version_installed = flavio.__version__.split('.')
version_required = __flavio__version__.split('.')
if version_installed[:2] == version_required[:2]:
return True
else:
return False