From acb2487f98360aaab390c0bbc9d9f41faab14502 Mon Sep 17 00:00:00 2001 From: Thomas Tanner Date: Sat, 19 Mar 2016 17:11:19 +0000 Subject: oopa --- src/engine/SCons/CacheDir.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/engine/SCons/CacheDir.py b/src/engine/SCons/CacheDir.py index aaf3c12..1690674 100644 --- a/src/engine/SCons/CacheDir.py +++ b/src/engine/SCons/CacheDir.py @@ -27,8 +27,6 @@ __doc__ = """ CacheDir support """ -from collections import defaultdict - import json import os import stat @@ -145,7 +143,7 @@ class CacheDir(object): self.path = path self.current_cache_debug = None self.debugFP = None - self.config = defaultdict() + self.config = dict() if path is None: return # See if there's a config file in the cache directory. If there is, @@ -186,7 +184,7 @@ class CacheDir(object): if not os.path.exists(config_file): try: with open(config_file, 'w') as config: - self.config = json.dump(self.config, config) + json.dump(self.config, config) except: msg = "Failed to write cache configuration for " + path raise SCons.Errors.EnvironmentError(msg) -- cgit v0.12