任务单 #44575

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

开放日期: 2022-05-13 05:20 最后更新: 2022-05-16 21:19

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

Details

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.

任务单历史 (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 Fixed

编辑

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