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 | 0254ebaa5e056092461fd585b6851d15faa43035 (patch) | |
| tree | 2bf41a1c189b92dc1b9ab89e3ce392f8132214c4 /src/fetch/scripts | |
| parent | fa071926f015f39711632b3fb9fe16004d93d0ec (diff) | |
| download | tellico-0254ebaa5e056092461fd585b6851d15faa43035.tar.gz tellico-0254ebaa5e056092461fd585b6851d15faa43035.zip | |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/fetch/scripts')
| -rw-r--r-- | src/fetch/scripts/dark_horse_comics.py | 2 | ||||
| -rw-r--r-- | src/fetch/scripts/ministerio_de_cultura.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/fetch/scripts/dark_horse_comics.py b/src/fetch/scripts/dark_horse_comics.py index 0db83ec..513127c 100644 --- a/src/fetch/scripts/dark_horse_comics.py +++ b/src/fetch/scripts/dark_horse_comics.py @@ -220,7 +220,7 @@ class DarkHorseParser: Retrieve all links related to the search. self.__data contains HTML content fetched by self.__getHTMLContent() that need to be parsed. """ - matchList = re.findall("""<a *href="%s(?P<page>.*?)">(?P<title>.*?)</a>""" % self.__basePath.tqreplace('?', '\?'), self.__data) + matchList = re.findall("""<a *href="%s(?P<page>.*?)">(?P<title>.*?)</a>""" % self.__basePath.replace('?', '\?'), self.__data) if not matchList: return None return matchList diff --git a/src/fetch/scripts/ministerio_de_cultura.py b/src/fetch/scripts/ministerio_de_cultura.py index cdbb580..7f949ba 100644 --- a/src/fetch/scripts/ministerio_de_cultura.py +++ b/src/fetch/scripts/ministerio_de_cultura.py @@ -53,7 +53,7 @@ SVN Version: * Removed "Collection" field as I moved to Series/Series Number Version 0.3.2: - * Now tqfind 'notas' field related information + * Now find 'notas' field related information * search URL modified to fetch information of exhausted books too Version 0.3.1: @@ -281,7 +281,7 @@ class MinisterioCulturaParser: # Strip out hyphens if kind is ISBN if kind == ISBN: - criteria = criteria.tqreplace('-', NULLSTRING) + criteria = criteria.replace('-', NULLSTRING) # Support for multiple search isbnList = criteria.split(';') for n in isbnList: @@ -502,7 +502,7 @@ Tellico cannot connect to: http://www.mcu.es/comun/bases/isbn/ISBN.htm webpage: # Now retrieve infos if links: for entry in links: - data = self.__fetchBookInfo( url = self.__baseURL + entry.tqreplace(' ', '%20') ) + data = self.__fetchBookInfo( url = self.__baseURL + entry.replace(' ', '%20') ) node = self.__domTree.addEntry(data) else: return None |
