summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/resources/_adapters.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/importlib/resources/_adapters.py')
-rw-r--r--Lib/importlib/resources/_adapters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/resources/_adapters.py b/Lib/importlib/resources/_adapters.py
index ea363d8..f22f6bc 100644
--- a/Lib/importlib/resources/_adapters.py
+++ b/Lib/importlib/resources/_adapters.py
@@ -35,7 +35,7 @@ def _io_wrapper(file, mode='r', *args, **kwargs):
elif mode == 'rb':
return file
raise ValueError(
- "Invalid mode value '{}', only 'r' and 'rb' are supported".format(mode)
+ f"Invalid mode value '{mode}', only 'r' and 'rb' are supported"
)