Ticket #45189

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

Eröffnet am: 2022-07-22 00:16 Letztes Update: 2022-07-23 19:17

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
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-Verlauf (3/4 Historien)

2022-07-22 00:16 Aktualisiert von: alienvalkyrie
  • New Ticket "generate_packets.py: remove comments and whitespace from input line by line" created
2022-07-22 00:41 Aktualisiert von: alienvalkyrie
  • Lösung Update from Keine to Accepted
  • Details Updated
Kommentar

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

2022-07-23 19:17 Aktualisiert von: alienvalkyrie
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Bearbeiten

Please login to add comment to this ticket » Anmelden