def _recv_tune(self, method_frame):
        self.connection._channel_max = method_frame.args.read_short(
        ) or self.connection._channel_max
        self.connection._frame_max = method_frame.args.read_long(
        ) or self.connection._frame_max

        # Note that 'is' test is required here, as 0 and None are distinct
        if self.connection._heartbeat > None:
            self.connection._heartbeat = method_frame.args.read_short()

        self._send_tune_ok()
        self._send_open()

        # 4.2.7: The client should start sending heartbeats after receiving a
        # Connection.Tune method
        self.send_heartbeat()
dataset/ETHPy150Open agoragames/haigha/haigha/connection.py/ConnectionChannel._recv_tune/operator `is` -> `>`