dict-like RSS entry with attribute access.
| 19 | |
| 20 | |
| 21 | class 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 | |
| 31 | class FixedDateTime(datetime): |
no outgoing calls