MCPcopy Index your code
hub / github.com/pyload/pyload / search

Method search

module/lib/feedparser.py:238–244  ·  view source on GitHub ↗
(self,string,index=0)

Source from the content-addressed store, hash-verified

236 # parser to find angle brackets embedded in element attributes.
237 self.endbracket = re.compile('''([^'"<>]|"[^"]*"(?=>|/|\s|\w+=)|'[^']*'(?=>|/|\s|\w+=))*(?=[<>])|.*?(?=[<>])''')
238 def search(self,string,index=0):
239 match = self.endbracket.match(string,index)
240 if match is not None:
241 # Returning a new object in the calling thread's context
242 # resolves a thread-safety.
243 return EndBracketMatch(match)
244 return None
245 class EndBracketMatch:
246 def __init__(self, match):
247 self.match = match

Callers 8

feedparser.pyFile · 0.45
lookslikehtmlMethod · 0.45
_sync_author_detailMethod · 0.45
findVCardsMethod · 0.45
findEnclosuresMethod · 0.45
_parse_date_perforceFunction · 0.45
_toUTF8Function · 0.45
_stripDoctypeFunction · 0.45

Calls 2

EndBracketMatchClass · 0.85
matchMethod · 0.45

Tested by

no test coverage detected