Convert logging f-strings to use % format (#98697)

Codemod done with
https://gist.github.com/ezyang/2e8b0463cdc6be278478495b23ff0530 with
assistance from ChatGPT.

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

Pull Request resolved: https://github.com/pytorch/pytorch/pull/98697
Approved by: https://github.com/voznesenskym
This commit is contained in:
Edward Z. Yang
2023-04-09 15:54:51 -04:00
committed by PyTorch MergeBot
parent ad88afcff8
commit 9a8f71f23e
45 changed files with 138 additions and 130 deletions

View File

@ -296,7 +296,7 @@ class OperatorInputsLoader:
try:
op = eval(key)
except AttributeError as ae:
log.warning(f"Evaluating an op name into an OpOverload: {ae}")
log.warning("Evaluating an op name into an OpOverload: %s", ae)
continue
yield op