|
10 | 10 | fromjsonimportdumps
|
11 | 11 | frombase64importb64encode
|
12 | 12 | fromcollectionsimportCallable
|
13 |
| -fromdatetimeimportdatetime |
14 | 13 | fromgithub3.decoratorsimportrequires_auth
|
15 | 14 | fromgithub3.eventsimportEvent
|
16 | 15 | fromgithub3.gitimportBlob,Commit,Reference,Tag,Tree
|
@@ -968,7 +967,7 @@ def iter_commit_activity(self, number=-1, etag=None):
|
968 | 967 | url=self._build_url('stats','commit_activity',base_url=self._api)
|
969 | 968 | returnself._iter(int(number),url,dict,etag=etag)
|
970 | 969 |
|
971 |
| -defiter_commits(self,sha=None,path=None,author=None,number=-1, |
| 970 | +defiter_commits(self,sha=None,path=None,author=None,number=-1, |
972 | 971 | etag=None,since=None,until=None):
|
973 | 972 | """Iterate over commits in this repository.
|
974 | 973 |
|
@@ -1246,15 +1245,16 @@ def iter_notifications(self, all=False, participating=False, since=None,
|
1246 | 1245 | :param bool participating: (optional), show only the notifications the
|
1247 | 1246 | user is participating in directly
|
1248 | 1247 | :param since: (optional), filters out any notifications updated
|
1249 |
| - before the given time. This can be a `datetime` or an `ISO8601` formatted |
1250 |
| - date string, e.g., 2012-05-20T23:10:27Z |
| 1248 | + before the given time. This can be a `datetime` or an `ISO8601` |
| 1249 | +formatteddate string, e.g., 2012-05-20T23:10:27Z |
1251 | 1250 | :type since: datetime or string
|
1252 | 1251 | :param str etag: (optional), ETag from a previous request to the same
|
1253 | 1252 | endpoint
|
1254 | 1253 | :returns: generator of :class:`Thread <github3.notifications.Thread>`
|
1255 | 1254 | """
|
1256 | 1255 | url=self._build_url('notifications',base_url=self._api)
|
1257 |
| -params= {'all':all,'participating':participating,'since':timestamp_parameter(since)} |
| 1256 | +params= {'all':all,'participating':participating, |
| 1257 | +'since':timestamp_parameter(since)} |
1258 | 1258 | for (k,v)inlist(params.items()):
|
1259 | 1259 | ifnotv:
|
1260 | 1260 | delparams[k]
|
|