Logo Search packages:      
Sourcecode: distribute version File versions  Download package

def pkg_resources::safe_name (   name  ) 

Convert an arbitrary string to a standard distribution name

Any runs of non-alphanumeric/. characters are replaced with a single '-'.

Definition at line 1089 of file pkg_resources.py.

01089                    :
    """Convert an arbitrary string to a standard distribution name

    Any runs of non-alphanumeric/. characters are replaced with a single '-'.
    """
    return re.sub('[^A-Za-z0-9.]+', '-', name)


def safe_version(version):


Generated by  Doxygen 1.6.0   Back to index