diff options
Diffstat (limited to 'test/QT/copied-env.py')
-rw-r--r-- | test/QT/copied-env.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/QT/copied-env.py b/test/QT/copied-env.py index f68e1db..63083da 100644 --- a/test/QT/copied-env.py +++ b/test/QT/copied-env.py @@ -21,6 +21,7 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # +from __future__ import generators ### KEEP FOR COMPATIBILITY FIXERS __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" @@ -28,8 +29,6 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" Test Qt with a copied construction environment. """ -import string - import TestSCons test = TestSCons.TestSCons() @@ -68,10 +67,9 @@ void aaa(void) test.run() -moc_MyForm = filter(lambda x: string.find(x, 'moc_MyForm') != -1, - string.split(test.stdout(), '\n')) +moc_MyForm = [x for x in test.stdout().split('\n') if x.find('moc_MyForm') != -1] -MYLIB_IMPL = filter(lambda x: string.find(x, 'MYLIB_IMPL') != -1, moc_MyForm) +MYLIB_IMPL = [x for x in moc_MyForm if x.find('MYLIB_IMPL') != -1] if not MYLIB_IMPL: print "Did not find MYLIB_IMPL on moc_MyForm compilation line:" |