

def get_filename(file):
    name = getattr(file, 'name', None)
    if (name and (not (name.endswith('>') and name.startswith('<')))):
        return file

dataset/ETHPy150Open ecdavis/pants/pants/http/utils.py get_filename/VarMisuse@48/53 `name`->`file`