From 70b47cb3d3283a208e9ac8f952d5d7a83aa140e2 Mon Sep 17 00:00:00 2001 From: duplo Date: Tue, 13 Jan 2009 11:48:15 +0000 Subject: [PATCH] Use a defaultdict instead of a standard dict for storing the toolchain's infos git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2171 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 8f91878d..646be2ee 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -13,6 +13,7 @@ import os import fnmatch import glob import re +import collections import const @@ -44,7 +45,7 @@ def findToolchains(pathList): return list(set(toolchains)) def getToolchainInfo(output): - info = {} + info = collections.defaultdict(unicode) expr = re.compile("Target: .*") target = expr.findall(output) if len(target) == 1: -- 2.25.1