summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/importlib/util.py')
-rw-r--r--Lib/importlib/util.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/importlib/util.py b/Lib/importlib/util.py
index 9e29c58..5294578 100644
--- a/Lib/importlib/util.py
+++ b/Lib/importlib/util.py
@@ -60,10 +60,10 @@ def _find_spec_from_path(name, path=None):
try:
spec = module.__spec__
except AttributeError:
- raise ValueError('{}.__spec__ is not set'.format(name)) from None
+ raise ValueError(f'{name}.__spec__ is not set') from None
else:
if spec is None:
- raise ValueError('{}.__spec__ is None'.format(name))
+ raise ValueError(f'{name}.__spec__ is None')
return spec
@@ -105,10 +105,10 @@ def find_spec(name, package=None):
try:
spec = module.__spec__
except AttributeError:
- raise ValueError('{}.__spec__ is not set'.format(name)) from None
+ raise ValueError(f'{name}.__spec__ is not set') from None
else:
if spec is None:
- raise ValueError('{}.__spec__ is None'.format(name))
+ raise ValueError(f'{name}.__spec__ is None')
return spec