任务单 #45189

generate_packets.py: remove comments and whitespace from input line by line

开放日期: 2022-07-22 00:16 最后更新: 2022-07-23 19:17

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
1

Details

Part of #45186. Implement a PacketsDefinition._clean_lines(lines: Iterable[str]) -> Iterable[str] classmethod that removes comments, blank lines and leading/trailing whitespace from the input line-by-line. If the input ends while inside a block comment (/* */), raise ValueError.

任务单历史 (3/4 Histories)

2022-07-22 00:16 Updated by: alienvalkyrie
  • New Ticket "generate_packets.py: remove comments and whitespace from input line by line" created
2022-07-22 00:41 Updated by: alienvalkyrie
  • 处理结果 Update from to Accepted
  • Details Updated
评论

This patch also makes main() call the new interface and removes the old non-linebased parse method.

2022-07-23 19:17 Updated by: alienvalkyrie
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

Please login to add comment to this ticket » 登录名