

def __formatLabel(self, fmt):
    if (fmt == GafferImage.Format()):
        return ('Default ( %s )' % GafferImage.FormatPlug.getDefaultFormat(name.getContext()))
    else:
        name = GafferImage.Format.name(fmt)
        if name:
            return ('%s ( %s )' % (name, str(fmt)))
        else:
            return 'Custom'

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferImageUI/FormatPlugValueWidget.py FormatPlugValueWidget.__formatLabel/VarMisuse@35/57 `self`->`name`