Re: Searching a string and extract all occurancies of a substring
- From: Nico Grubert <nicogrubert@xxxxxxxxx>
- Date: Thu, 31 Aug 2006 18:36:34 +0200
This works as long as there are no other <paramter> Tags in the content that I parse.
Got it.
I forgot to handle the 'attrs' parameter in handle_starttag().
Changed it to:
def handle_starttag(self, tag, attrs):
if tag == 'parameter':
if attrs == [('key', 'infobox_path')]:
self.readingpaths = 1
This works so far.
.
- Prev by Date: Re: get a line of text from a socket...
- Next by Date: Re: Basic import Questions (with bonus profiling question)
- Previous by thread: Re: Searching a string and extract all occurancies of a substring
- Next by thread: Subclassing Tkinter Buttons
- Index(es):