Fix UnicodeError loading plugins with non-ascii in them on python3

pull/17429/head
Toshio Kuratomi 8 years ago
parent 113dfc5562
commit 1d412059a0

@ -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…
Cancel
Save