Skip to content

Commit 06363d7

Browse files
committed
Python backward compatability, again
1 parent e69b0b6 commit 06363d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

memory_profiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ def _ps_util_full_tool(memory_metric):
159159

160160
if not hasattr(meminfo, memory_metric):
161161
raise NotImplementedError(
162-
f"Metric `{memory_metric}` not available. For details, see:"
163-
f"https://psutil.readthedocs.io/en/latest/index.html?highlight=memory_info#psutil.Process.memory_full_info")
162+
"Metric `{}` not available. For details, see:".format(memory_metric) +
163+
"https://psutil.readthedocs.io/en/latest/index.html?highlight=memory_info#psutil.Process.memory_full_info")
164164
mem = getattr(meminfo, memory_metric) / _TWO_20
165165

166166
if include_children:

0 commit comments

Comments
 (0)