待辦事項 #44575

generate_packets.py: phase out use of vars() in formatting

啟用日期: 2022-05-13 05:20 最後更新: 2022-05-16 21:19

回報者:
負責人:
類型:
狀態:
關閉
元件:
里程碑:
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:
1

細節

Part of #43927. Using vars() makes it impossible for IDEs or static code checking tools to reason about usage of variables. We should replace uses of vars() with a more robust formatting solution.

Since f-strings are only available from Python 3.6 onward, we'll have to fall back on the "...".format(foo = foo, bar = bar) idiom for now.

Ticket History (3/5 Histories)

2022-05-13 05:20 Updated by: alienvalkyrie
  • New Ticket "generate_packets.py: phase out use of vars() in formatting" created
2022-05-13 05:31 Updated by: alienvalkyrie
評語

Variant.get_send() and Variant.get_receive() have their own idiosyncratic formatting mechanisms and will be dealt with separately in #44577

(Edited, 2022-05-13 05:34 Updated by: alienvalkyrie)
2022-05-13 05:46 Updated by: alienvalkyrie
  • 處理結果 Update from to Accepted
評語

Depends on #44563 and #44576

2022-05-16 21:19 Updated by: alienvalkyrie
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

編輯

Please login to add comment to this ticket » 登入