Tíquete #45189

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

: 2022-07-22 00:16 Última Atualização: 2022-07-23 19:17

Relator:
Tipo:
Estado:
Fechado
Componente:
Marcos:
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
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.

Ticket History (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
  • Resolução Update from Nenhum to Accepted
  • Details Updated
Comentário

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
  • Estado Update from Aberto to Fechado
  • Resolução Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Login