diff options
| author | Gregory P. Smith <greg@krypto.org> | 2022-10-07 01:27:51 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-07 01:27:51 (GMT) |
| commit | 27369ef56ffed8ab68abc201a52b259a065ed8d7 (patch) | |
| tree | 1048143cf501070cc318dbbffd70729bcc74341e /Lib/importlib/resources/_adapters.py | |
| parent | fa2d43e5184f5eaf3391844ec2400342a1b2ead4 (diff) | |
| download | cpython-27369ef56ffed8ab68abc201a52b259a065ed8d7.zip cpython-27369ef56ffed8ab68abc201a52b259a065ed8d7.tar.gz cpython-27369ef56ffed8ab68abc201a52b259a065ed8d7.tar.bz2 | |
gh-82874: Convert remaining importlib format uses to f-str. (#98005)
f-yes
Diffstat (limited to 'Lib/importlib/resources/_adapters.py')
| -rw-r--r-- | Lib/importlib/resources/_adapters.py | 2 |
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" ) |
