mirror of
https://github.com/python-pillow/Pillow.git
synced 2026-01-28 02:55:49 +03:00
Improve wording
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
3968886cf6
commit
34814d8d2f
|
|
@ -3630,8 +3630,8 @@ def open(
|
|||
|
||||
prefix = fp.read(16)
|
||||
|
||||
# Try to load just the plugin needed for this file extension
|
||||
# before falling back to preinit() which loads common plugins
|
||||
# Try to import just the plugin needed for this file extension
|
||||
# before falling back to preinit() which imports common plugins
|
||||
ext = os.path.splitext(filename)[1] if filename else ""
|
||||
if not (ext and _import_plugin_for_extension(ext)):
|
||||
preinit()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user