def safe_version(version):
    version = version.replace(' ','.')
    return re.sub('[^A-Za-z0-9.]+', '-', version)
Convert an arbitrary string to a standard version string
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/distutils/command/install_egg_info.py/safe_version