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

def pkg_resources::safe_version (   version  ) 

Convert an arbitrary string to a standard version string

Spaces become dots, and all other non-alphanumeric characters become
dashes, with runs of multiple dashes condensed to a single dash.

Definition at line 1097 of file pkg_resources.py.

01097                          :
    """Convert an arbitrary string to a standard version string

    Spaces become dots, and all other non-alphanumeric characters become
    dashes, with runs of multiple dashes condensed to a single dash.
    """
    version = version.replace(' ','.')
    return re.sub('[^A-Za-z0-9.]+', '-', version)


def safe_extra(extra):


Generated by  Doxygen 1.6.0   Back to index