use the format method instead of f-strings

This commit is contained in:
Keewis
2020-07-07 22:57:37 +02:00
parent 7d8aaf2c03
commit f4817be7a9

View File

@@ -920,9 +920,9 @@ def _convert_numpy_type_spec(_type, translations={}):
)
converters = {
"literal": lambda x: f"``{x}``",
"literal": lambda x: "``{x}``".format(x=x),
"obj": lambda x: convert_obj(x, translations, default_translation),
"control": lambda x: f"*{x}*",
"control": lambda x: "*{x}*".format(x=x),
"delimiter": lambda x: x,
"reference": lambda x: x,
}