MCPcopy Create free account
hub / github.com/clips/pattern / _findOne

Method _findOne

pattern/web/soup/BeautifulSoup.py:341–346  ·  view source on GitHub ↗
(self, method, name, attrs, text, **kwargs)

Source from the content-addressed store, hash-verified

339 #These methods do the real heavy lifting.
340
341 def _findOne(self, method, name, attrs, text, **kwargs):
342 r = None
343 l = method(name, attrs, text, 1, **kwargs)
344 if l:
345 r = l[0]
346 return r
347
348 def _findAll(self, name, attrs, text, limit, generator, **kwargs):
349 "Iterates over a generator looking for things that match."

Callers 4

findNextMethod · 0.95
findNextSiblingMethod · 0.95
findPreviousMethod · 0.95
findPreviousSiblingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected