def _guess_backup_protocol(self, number, client):
        query = self.status('c:{0}:b:{1}:l:backup\n'.format(client, number))
        try:
            log = query['clients'][0]['backups'][0]['logs']['backup']
            for line in log:
                if re.search(r'Protocol: 2$', line):
                    return 2
        except KeyError as e:
            # Assume protocol 1 in all cases unless explicitly found Protocol 2
            return 1
        return 1
The :func:`burpui.misc.backend.burp2.Burp._guess_backup_protocol`
dataset/ETHPy150Open ziirish/burp-ui/burpui/misc/backend/burp2.py/Burp._guess_backup_protocol