Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitede87a5

Browse files
authored
Merge pull request#1 from armanawn/develop
Fix problem with `collections` module in Python >= 3.10
2 parents77fc7c3 +a0003d2 commitede87a5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎github3/session.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
importrequests
33

4-
fromcollectionsimportCallable
4+
fromcollections.abcimportCallable
55
from .import__version__
66
fromloggingimportgetLogger
77
fromcontextlibimportcontextmanager

‎github3/structs.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .importmodels
99

1010

11-
classGitHubIterator(models.GitHubCore,collections.Iterator):
11+
classGitHubIterator(models.GitHubCore,collections.abc.Iterator):
1212
"""The :class:`GitHubIterator` class powers all of the iter_* methods."""
1313
def__init__(self,count,url,cls,session,params=None,etag=None,
1414
headers=None):

‎github3/utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def stream_response_to_file(response, path=None):
8181
fd=None
8282
filename=None
8383
ifpath:
84-
ifisinstance(getattr(path,'write',None),collections.Callable):
84+
ifisinstance(getattr(path,'write',None),collections.abc.Callable):
8585
pre_opened=True
8686
fd=path
8787
filename=getattr(fd,'name',None)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp