def has_capability(self, cap):
        if self._client_capabilities is None:
            raise GitProtocolError('Server attempted to access capability %s '
                                   'before asking client' % cap)
        return cap in self._client_capabilities
dataset/ETHPy150Open natestedman/Observatory/observatory/lib/dulwich/server.py/Handler.has_capability/original