From: stevenknight Date: Mon, 23 Nov 2009 01:59:17 +0000 (+0000) Subject: Python 1.5 compat: if 'text' in kw.keys() X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2847c9197891660684fe9e5d931b88f09f0142e0;p=scons.git Python 1.5 compat: if 'text' in kw.keys() git-svn-id: http://scons.tigris.org/svn/scons/trunk@4467 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/compat/__init__.py b/src/engine/SCons/compat/__init__.py index 3f68b44a..f9212e01 100644 --- a/src/engine/SCons/compat/__init__.py +++ b/src/engine/SCons/compat/__init__.py @@ -260,7 +260,9 @@ except AttributeError: import errno def mkstemp(*args, **kw): text = False - if 'text' in kw : + # TODO (1.5) + #if 'text' in kw : + if 'text' in kw.keys() : text = kw['text'] del kw['text'] elif len( args ) == 4 :