summaryrefslogtreecommitdiffstats
path: root/test/QT/QTFLAGS.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/QT/QTFLAGS.py')
-rw-r--r--test/QT/QTFLAGS.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/QT/QTFLAGS.py b/test/QT/QTFLAGS.py
index 62155fd..008397a 100644
--- a/test/QT/QTFLAGS.py
+++ b/test/QT/QTFLAGS.py
@@ -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