From 8b5ee2468d2bdbaacf841487176b2a5e670dffb4 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 31 Oct 2018 21:57:14 +0800 Subject: configs/manager: Fix the loading of config spec --- fg21sim/configs/manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fg21sim') diff --git a/fg21sim/configs/manager.py b/fg21sim/configs/manager.py index 07f6f77..6c50702 100644 --- a/fg21sim/configs/manager.py +++ b/fg21sim/configs/manager.py @@ -131,8 +131,7 @@ class ConfigManager: If the ``userconfig`` provided, the user configurations is also loaded, validated, and merged. """ - configspec = pkg_resources.resource_string( - __name__, "config.spec").decode("utf-8") + configspec = pkg_resources.resource_stream(__name__, "config.spec") self._configspec = ConfigObj(configspec, interpolation=False, list_values=False, _inspec=True, encoding="utf-8") -- cgit v1.2.2