def setsockopt(self, option, value): if self.state.SHUTDOWN: raise err.Error(errno.ESHUTDOWN) super(RawAccessPoint, self).setsockopt(option, value)