def removeDefExtPostfix(name):
    for extPostfix in EXTENSION_POSTFIXES:
        if endsWith(name, ('_' + extPostfix)):
            return name[0:(- (len(extPostfix) + 1))]
    return None
def removeDefExtPostfix(name):
    for extPostfix in EXTENSION_POSTFIXES:
        if endsWith(name, ('_' + extPostfix)):
            return name[0:(- (len(extPostfix) + 1))]
    return None