Use regular import instead of wildcard import
authorBen Steffen <bds@mit.edu>
Tue, 26 Nov 2019 21:09:15 +0000 (16:09 -0500)
committerBen Steffen <bds@mit.edu>
Tue, 26 Nov 2019 21:09:15 +0000 (16:09 -0500)
python/invirt/config.py

index ae960b1..76c848a 100644 (file)
@@ -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: