azure-servicemanagement-legacy/azure/servicemanagement/_common_serialization.py
def _get_readable_id(id_name, id_prefix_to_skip):
    """simplified an id to be more friendly for us people"""
    # id_name is in the form 'https://namespace.host.suffix/name'
    # where name may contain a forward slash!
    pos = id_name.find('//')
    if pos != -1:
        pos += 2
        if id_prefix_to_skip:
            pos = id_name.find(id_prefix_to_skip, pos)
            if pos != -1:
                pos += len(id_prefix_to_skip)
        pos = id_name.find('/', pos)
        if pos != -1:
            return id_name[pos + 1:]
    return id_name
def _get_readable_id(id_name, id_prefix_to_skip):
    # id_name is in the form 'https://namespace.host.suffix/name'
    # where name may contain a forward slash!
    pos = id_name.find('//')
    if pos != -1:
        pos += 2
        if id_prefix_to_skip:
            pos = id_name.find(id_prefix_to_skip, pos)
            if pos != -1:
                pos += len(id_prefix_to_skip)
        pos = id_name.find('/', pos)
        if pos != -1:
            return id_name[pos + 1:]
    return id_name
def _get_readable_id ( id_name , id_prefix_to_skip ) : # id_name is in the form 'https://namespace.host.suffix/name' # where name may contain a forward slash! pos = id_name . find ( '//' ) if pos != - 1 : pos += 2 if id_prefix_to_skip : pos = id_name . find ( id_prefix_to_skip , pos ) if pos != - 1 : pos += len ( id_prefix_to_skip ) pos = id_name . find ( '/' , pos ) if pos != - 1 : return id_name [ pos + 1 : ] return id_name
simplified an id to be more friendly for us people
simplified an id to be more friendly for us people