diff options
| author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
|---|---|---|
| committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
| commit | b6edfe41c9395f2e20784cbf0e630af6426950a3 (patch) | |
| tree | 56ed9b871d4296e6c15949c24e16420be1b28697 /chalk/core/createdcop.py | |
| parent | ef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff) | |
| download | koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip | |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 bac48f333..de773270f 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: |
