MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / FakeEntry

Class FakeEntry

tests/test_journal_fetcher.py:21–28  ·  view source on GitHub ↗

dict-like RSS entry with attribute access.

Source from the content-addressed store, hash-verified

19
20
21class FakeEntry(dict):
22 """dict-like RSS entry with attribute access."""
23
24 def __getattr__(self, item):
25 try:
26 return self[item]
27 except KeyError as exc:
28 raise AttributeError(item) from exc
29
30
31class FixedDateTime(datetime):

Calls

no outgoing calls