From: stevenknight Date: Sun, 15 Nov 2009 18:03:52 +0000 (+0000) Subject: 1.5 fix: use apply() instead of (*args, **kw). X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a9a450c90507b6125420c687a7e0d0f5b9c629e1;p=scons.git 1.5 fix: use apply() instead of (*args, **kw). git-svn-id: http://scons.tigris.org/svn/scons/trunk@4396 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/compat/__init__.py b/src/engine/SCons/compat/__init__.py index 100d8332..3f68b44a 100644 --- a/src/engine/SCons/compat/__init__.py +++ b/src/engine/SCons/compat/__init__.py @@ -258,7 +258,7 @@ except AttributeError: # adapted from the mkstemp implementation in python 3. import os import errno - def mkstemp( *args, **kw ) : + def mkstemp(*args, **kw): text = False if 'text' in kw : text = kw['text'] @@ -271,7 +271,7 @@ except AttributeError: flags = flags | os.O_BINARY while True: try : - name = tempfile.mktemp( *args, **kw ) + name = apply(tempfile.mktemp, args, kw) fd = os.open( name, flags, 0600 ) return (fd, os.path.abspath(name)) except OSError, e: