(data_dict)
| 156 | i = 0 |
| 157 | |
| 158 | def send_data(data_dict): |
| 159 | if data_dict: |
| 160 | # use compact JSON format (without space) |
| 161 | data = common.to_bytes(json.dumps(data_dict, |
| 162 | separators=(',', ':'))) |
| 163 | self._send_control_data(b'stat: ' + data) |
| 164 | |
| 165 | for k, v in self._statistics.items(): |
| 166 | r[k] = v |
nothing calls this directly
no test coverage detected