MCPcopy Index your code
hub / github.com/clips/pattern / __contains__

Method __contains__

pattern/web/feed/feedparser.py:385–396  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

383 return dict.__getitem__(self, key)
384
385 def __contains__(self, key):
386 if key in ('updated', 'updated_parsed'):
387 # Temporarily help developers out by keeping the old
388 # broken behavior that was reported in issue 310.
389 # This fix was proposed in issue 328.
390 return dict.__contains__(self, key)
391 try:
392 self.__getitem__(key)
393 except KeyError:
394 return False
395 else:
396 return True
397
398 has_key = __contains__
399

Callers 1

__getitem__Method · 0.45

Calls 1

__getitem__Method · 0.95

Tested by

no test coverage detected