File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -181,4 +181,6 @@ Contributors
181
181
182
182
- Steven Nyman (@stevennyman)
183
183
184
- - Tigran Tchougourian (@NargiT)
184
+ - Tigran Tchougourian (@NargiT)
185
+
186
+ - Dimitri Merejkowsky (@dmerejkowsky)
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
"""Module containing session and auth logic."""
3
- from collections import Callable
3
+ try :
4
+ from collections .abc import Callable
5
+ except ImportError :
6
+ # For Python 2.7 compatibility
7
+ from collections import Callable
8
+
4
9
import datetime
5
10
from contextlib import contextmanager
6
11
from logging import getLogger
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
- import collections
2
+ try :
3
+ from collections .abc import Iterator
4
+ except ImportError :
5
+ # For Python 2.7 compatibility
6
+ from collections import Iterator
3
7
import functools
4
8
5
9
from requests .compat import urlparse , urlencode
8
12
from . import models
9
13
10
14
11
- class GitHubIterator (models .GitHubCore , collections . Iterator ):
15
+ class GitHubIterator (models .GitHubCore , Iterator ):
12
16
"""The :class:`GitHubIterator` class powers all of the iter_* methods."""
13
17
14
18
def __init__ (
You can’t perform that action at this time.
0 commit comments