From 818f389284009c7e7e82b7734d6a4ad96b5d9869 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Thu, 16 Apr 2009 13:30:54 +0000 Subject: [PATCH] Fix Python 2.2 idiom. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4093 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Variables/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/SCons/Variables/__init__.py b/src/engine/SCons/Variables/__init__.py index f203677e..b1a22886 100644 --- a/src/engine/SCons/Variables/__init__.py +++ b/src/engine/SCons/Variables/__init__.py @@ -99,7 +99,9 @@ class Variables: # options might be added after the 'unknown' dict has been set up, # so we remove the key and all its aliases from that dict for alias in list(option.aliases) + [ option.key ]: - if alias in self.unknown: + # TODO(1.5) + #if alias in self.unknown: + if alias in self.unknown.keys(): del self.unknown[alias] def keys(self): -- 2.26.2