Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gitsome/lib/github3/session.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
import requests

from collections import Callable
from collections.abc import Callable
from . import __version__
from logging import getLogger
from contextlib import contextmanager
Expand Down
4 changes: 2 additions & 2 deletions gitsome/lib/github3/structs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
import collections
import collections.abc
import functools

from requests.compat import urlparse, urlencode
Expand All @@ -8,7 +8,7 @@
from . import models


class GitHubIterator(models.GitHubCore, collections.Iterator):
class GitHubIterator(models.GitHubCore, collections.abc.Iterator):
"""The :class:`GitHubIterator` class powers all of the iter_* methods."""
def __init__(self, count, url, cls, session, params=None, etag=None,
headers=None):
Expand Down
4 changes: 2 additions & 2 deletions gitsome/lib/github3/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""A collection of useful utilities."""
import collections
import collections.abc
import datetime
import re

Expand Down Expand Up @@ -81,7 +81,7 @@ def stream_response_to_file(response, path=None):
fd = None
filename = None
if path:
if isinstance(getattr(path, 'write', None), collections.Callable):
if isinstance(getattr(path, 'write', None), collections.abc.Callable):
pre_opened = True
fd = path
filename = getattr(fd, 'name', None)
Expand Down