From 2847c9197891660684fe9e5d931b88f09f0142e0 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Mon, 23 Nov 2009 01:59:17 +0000 Subject: [PATCH] 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 --- src/engine/SCons/compat/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 : -- 2.26.2