From cd9148bcecaf7349a0dc58e6deffef721ed07b45 Mon Sep 17 00:00:00 2001 From: brent s Date: Tue, 7 Aug 2018 12:23:27 -0400 Subject: [PATCH] fixing some 3.7 stuff --- centos/repoclone/repoclone.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/centos/repoclone/repoclone.py b/centos/repoclone/repoclone.py index 6e39f13..b2adf86 100755 --- a/centos/repoclone/repoclone.py +++ b/centos/repoclone/repoclone.py @@ -24,10 +24,10 @@ _logmodpath = os.path.abspath(os.path.join(_selfpath, 'lib', 'python', 'logger.py')) -logger = importlib.util.module_from_spec( - importlib.util.spec_from_file_location( - 'logger', - _logmodpath)) +log_spec = importlib.util.spec_from_file_location('logger', _logmodpath) +logger = importlib.util.module_from_spec(log_spec) +log_spec.loader.exec_module(logger) + _loglevel = 'warning' #_loglevel = 'debug'