diff options
Diffstat (limited to 'chalk/core/createdcop.py')
-rwxr-xr-x | chalk/core/createdcop.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/chalk/core/createdcop.py b/chalk/core/createdcop.py index bac48f33..de773270 100755 --- a/chalk/core/createdcop.py +++ b/chalk/core/createdcop.py @@ -84,10 +84,10 @@ dcopiface_template = """/* def parseHeader(headerfile, classname): # parse the source class header to get a list of functions we're going to wrap functions = [] - if (headerfile.tqfind("private:") > -1): - lines = headerfile[headerfile.tqfind(classname):headerfile.tqfind("private")].splitlines() + if (headerfile.find("private:") > -1): + lines = headerfile[headerfile.find(classname):headerfile.find("private")].splitlines() else: - lines = headerfile[headerfile.tqfind(classname):headerfile.tqfind("#endif")].splitlines() + lines = headerfile[headerfile.find(classname):headerfile.find("#endif")].splitlines() i = 0 while i < len(lines): line = lines[i].strip() @@ -100,7 +100,7 @@ def parseHeader(headerfile, classname): line.startswith("#") or line.startswith("}") or line.startswith("public Q_SLOTS:") or - line.tqfind("~") != -1 or + line.find("~") != -1 or len(line) == 0 ): i+=1 @@ -112,17 +112,17 @@ def parseHeader(headerfile, classname): function = line complete = 0 # strip the inline implementation - if (line.tqfind("{") > -1): - function = line[:line.tqfind("{")] - if function.tqfind("}") > -1: - function += line[line.tqfind("}") + 1:] + if (line.find("{") > -1): + function = line[:line.find("{")] + if function.find("}") > -1: + function += line[line.find("}") + 1:] complete = 1 else: i += 1 # search for the missing } on the next lines while i < len(lines): - if (lines[i].tqfind("}") > -1): - function += lines[i][lines[i].tqfind("}") + 1:] + if (lines[i].find("}") > -1): + function += lines[i][lines[i].find("}") + 1:] complete = 1 i += 1 else: |