Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def name_version(dist_spec):
    if '==' in dist_spec:
        return dist_spec.split('==')
    return dist_spec, None
        


src/p/k/pkgsync-0.1.0/pkgsync/versions.py   pkgsync(Download)
from ConfigParser import RawConfigParser, NoOptionError, NoSectionError
 
from .util import FileLikeResponseAdapter, name_version
 
 
 
        for dist_spec in names_list:
            name, version = name_version(dist_spec)
            if not name in package_versions:
                package_versions[name] = []