Faster backward-compatible code
authorgregnoel <gregnoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Fri, 20 Nov 2009 01:44:49 +0000 (01:44 +0000)
committergregnoel <gregnoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Fri, 20 Nov 2009 01:44:49 +0000 (01:44 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4464 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Tool/swig.py

index 1fe0461293b2d71a471872caf49283d4abd9250f..c473b1033667abc75fa7f24ff8f3b74244d86f3a 100644 (file)
@@ -68,8 +68,7 @@ def _find_modules(src):
     except IOError:
         # If the file's not yet generated, guess the module name from the filename
         matches = []
-        # TODO(1.5):  +=
-        mnames = mnames + [os.path.splitext(src)[0]]
+        mnames.append(os.path.splitext(src)[0])
 
     for m in matches:
         mnames.append(m[2])