From: stevenknight Date: Thu, 16 Apr 2009 13:30:54 +0000 (+0000) Subject: Fix Python 2.2 idiom. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=818f389284009c7e7e82b7734d6a4ad96b5d9869;p=scons.git Fix Python 2.2 idiom. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4093 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- 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):