Skip to content

Commit 613729f

Browse files
committed
Fixed 2.4 compatibility in isodate_to_datetime.
1 parent c720feb commit 613729f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github2/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def isodate_to_datetime(iso_date):
8080
:param str github_date: date string to parse
8181
"""
8282
date_without_tz = iso_date[:-1]
83-
return datetime.strptime(date_without_tz, COMMIT_DATE_FORMAT)
83+
return strptime(date_without_tz, COMMIT_DATE_FORMAT)
8484

8585

8686
def datetime_to_isodate(datetime_):

0 commit comments

Comments
 (0)