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

Method __getattr__

module/lib/feedparser.py:347–356  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

345 __has_key = has_key
346
347 def __getattr__(self, key):
348 try:
349 return self.__dict__[key]
350 except KeyError:
351 pass
352 try:
353 assert not key.startswith('_')
354 return self.__getitem__(key)
355 except:
356 raise AttributeError, "object has no attribute '%s'" % key
357
358 def __setattr__(self, key, value):
359 if key.startswith('_') or key == 'data':

Callers

nothing calls this directly

Calls 1

__getitem__Method · 0.95

Tested by

no test coverage detected