Ticket #43929

generate_packets.py: Initial cleanup

Eröffnet am: 2022-02-19 22:19 Letztes Update: 2022-02-22 21:10

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
1

Details

Part of #43927. Remove trailing whitespace and imports/variables that are no longer used, to provide a clean starting point for bigger changes.

Ticket-Verlauf (3/10 Historien)

2022-02-19 22:19 Aktualisiert von: alienvalkyrie
  • New Ticket "generate_packets.py: Initial cleanup" created
2022-02-20 01:46 Aktualisiert von: cazfi
Kommentar

When making changes to generate_packets.py, pay extra attention to clear version history (just one easy-to-understand change per commit, hopefully so that the diff file is easy to read), as porting the changes to freeciv-web's patching of the file is painful at best of times.

2022-02-20 10:17 Aktualisiert von: alienvalkyrie
Kommentar

Reply To cazfi

just one easy-to-understand change per commit, hopefully so that the diff file is easy to read

I'll see what I can do, though that might mean lot of commits, given that basically the whole file needs a complete makeover – without the way I already split it into multiple tickets, it would've probably resulted in one giant commit tantamount to writing almost the entire script anew from the ground up.

2022-02-20 10:19 Aktualisiert von: alienvalkyrie
  • File 0001-generate_packets.py-basic-cleanup.patch (File ID: 8587) is attached
2022-02-20 10:21 Aktualisiert von: alienvalkyrie
  • Lösung Update from Keine to Accepted
Kommentar

Attached patch covers imports and declarations that are no longer used, whitespace, and places where a variable name was the same as a builtin.

2022-02-20 10:25 Aktualisiert von: cazfi
Kommentar

I'd still like that #43901 would go in first, as a separate commit, from which people know that nothing else changes on those lines touched than trailing space removal - which is easy to recreate for the forked scripts without any other considerations.

2022-02-20 11:54 Aktualisiert von: alienvalkyrie
  • File 0001-generate_packets.py-basic-cleanup.patch (File ID: 8587) is deleted
2022-02-20 11:55 Aktualisiert von: alienvalkyrie
Kommentar

Reply To cazfi

I'd still like that #43901 would go in first

I somehow completely missed that ticket. Rebased patch is attached.

2022-02-22 21:10 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