Parse dates in the format returned by the Github API.
(s)
| 36 | return dt.replace(minute=0,second=0,microsecond=0) |
| 37 | |
| 38 | def _parse_datetime(s): |
| 39 | """Parse dates in the format returned by the Github API.""" |
| 40 | if s: |
| 41 | return datetime.strptime(s, ISO8601) |
| 42 | else: |
| 43 | return datetime.fromtimestamp(0) |
| 44 | |
| 45 | def issues2dict(issues): |
| 46 | """Convert a list of issues to a dict, keyed by issue number.""" |
no outgoing calls
no test coverage detected