def make_dev_path(dev, partition=None, base='/dev'):
    path = os.path.join(base, dev)
    if partition:
        path += str(partition)
    return path
Internal method used as get_result_hook for AllocateIds.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/utils.py/make_dev_path--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/datastore/datastore_rpc.py/Connection.__allocate_ids_hook