mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix UnicodeError loading plugins with non-ascii in them on python3
This commit is contained in:
parent
113dfc5562
commit
1d412059a0
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ class PluginLoader:
|
|||
return sys.modules[name]
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter("ignore", RuntimeWarning)
|
||||
with open(path, 'r') as module_file:
|
||||
with open(path, 'rb') as module_file:
|
||||
module = imp.load_source(name, path, module_file)
|
||||
return module
|
||||
|
||||
|
|
Loading…
Reference in a new issue