From c0cb9a2013e343daaec5d7c29ebea97d69fa8f7f Mon Sep 17 00:00:00 2001 From: Ben Steffen Date: Tue, 26 Nov 2019 16:09:15 -0500 Subject: [PATCH 1/1] Use regular import instead of wildcard import --- python/invirt/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/invirt/config.py b/python/invirt/config.py index ae960b1..76c848a 100644 --- a/python/invirt/config.py +++ b/python/invirt/config.py @@ -3,7 +3,7 @@ import os import re import yaml -from invirt.common import * +import invirt.common try: loader = yaml.CSafeLoader except: loader = yaml.SafeLoader @@ -128,7 +128,7 @@ def load(force_refresh = False): # transactionally isolated from the above cache read. If we fail to # acquire the lock, just try to load the master configuration. try: - with lock_file(lock_path): + with invirt.common.open_locked(lock_path): ns.cfg = load_master() try: with open(cache_path + '.tmp', 'w') as f: -- 1.7.9.5