diff options
author | Steven Knight <knight@baldmt.com> | 2009-11-15 18:03:52 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2009-11-15 18:03:52 (GMT) |
commit | 7bcee9d5d15a6be4c29c72227f6b4e4cca3828c3 (patch) | |
tree | 4f9c3a5be0d8848f0823221c6ec54f3ffbf698b1 /src/engine/SCons/compat | |
parent | ab3b9aebd30a249fc7a10e3dadf1b66b9bcb199d (diff) | |
download | SCons-7bcee9d5d15a6be4c29c72227f6b4e4cca3828c3.zip SCons-7bcee9d5d15a6be4c29c72227f6b4e4cca3828c3.tar.gz SCons-7bcee9d5d15a6be4c29c72227f6b4e4cca3828c3.tar.bz2 |
1.5 fix: use apply() instead of (*args, **kw).
Diffstat (limited to 'src/engine/SCons/compat')
-rw-r--r-- | src/engine/SCons/compat/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/compat/__init__.py b/src/engine/SCons/compat/__init__.py index 100d833..3f68b44 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: |