(*args, **kwargs)
| 38 | def utc_aware(unaware): |
| 39 | """decorator for adding UTC tzinfo to datetime's utcfoo methods""" |
| 40 | def utc_method(*args, **kwargs): |
| 41 | dt = unaware(*args, **kwargs) |
| 42 | return dt.replace(tzinfo=UTC) |
| 43 | return utc_method |
| 44 | |
| 45 | utcfromtimestamp = utc_aware(datetime.utcfromtimestamp) |
nothing calls this directly
no outgoing calls
no test coverage detected