Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / QT / QTFLAGS.py
index 62155fd2d8c248c0408c6d1297dc8df6c276490b..008397a886f5f8756ed18d8a3ba17a3e7a49715d 100644 (file)
@@ -147,9 +147,8 @@ test.must_exist(['work1', 'mmmmocFromH.cxx'],
                 ['work1', 'mmmanother_ui_file.cxx'])
 
 def _flagTest(test,fileToContentsStart):
-    import string
     for f,c in fileToContentsStart.items():
-        if string.find(test.read(test.workpath('work1', f)), c) != 0:
+        if test.read(test.workpath('work1', f)).find(c) != 0:
             return 1
     return 0