bpo-30436: Add missing space in importlib.util.find_spec() error message (GH-7385)

(cherry picked from commit fffeb6f3d6)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
Miss Islington (bot) 2018-06-06 23:21:43 -07:00 committed by GitHub
parent cebd4b009a
commit d2a2af0df4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,7 +96,7 @@ def find_spec(name, package=None):
parent_path = parent.__path__ parent_path = parent.__path__
except AttributeError as e: except AttributeError as e:
raise ModuleNotFoundError( raise ModuleNotFoundError(
f"__path__ attribute not found on {parent_name!r}" f"__path__ attribute not found on {parent_name!r} "
f"while trying to find {fullname!r}", name=fullname) from e f"while trying to find {fullname!r}", name=fullname) from e
else: else:
parent_path = None parent_path = None