summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaweł Tomulik <ptomulik@meil.pw.edu.pl>2013-01-07 00:59:38 (GMT)
committerPaweł Tomulik <ptomulik@meil.pw.edu.pl>2013-01-07 00:59:38 (GMT)
commit1d0f18370058168a46160439eb40ce95e262d4cb (patch)
tree6d5c9e8e3a7954acefb63bc1da5aa6061c1b340e
parentdf2a07d190f888ffa803cb3297b8688951e13e83 (diff)
downloadSCons-1d0f18370058168a46160439eb40ce95e262d4cb.zip
SCons-1d0f18370058168a46160439eb40ce95e262d4cb.tar.gz
SCons-1d0f18370058168a46160439eb40ce95e262d4cb.tar.bz2
fixed bug with mutable default argument in Tool/GettextCommon.py
-rw-r--r--src/engine/SCons/Tool/GettextCommon.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/GettextCommon.py b/src/engine/SCons/Tool/GettextCommon.py
index 86d7eaf..cd2f306 100644
--- a/src/engine/SCons/Tool/GettextCommon.py
+++ b/src/engine/SCons/Tool/GettextCommon.py
@@ -225,8 +225,9 @@ class _POFileBuilder(BuilderBase):
import SCons.Environment
#############################################################################
-def _translate(env, target=[], source=SCons.Environment._null, *args, **kw):
+def _translate(env, target=None, source=SCons.Environment._null, *args, **kw):
""" Function for `Translate()` pseudo-builder """
+ if target is None: target = []
pot = env.POTUpdate(None, source, *args, **kw)
po = env.POUpdate(target, pot, *args, **kw)
return po