Skip to content

Commit

Permalink
testutils: Avoid deprecated parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jan 31, 2024
1 parent 9a659f7 commit cdf7acc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testutils/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import urllib.parse

from bs4 import BeautifulSoup
from github import Github, GithubException, InputFileContent
from github import Auth, Github, GithubException, InputFileContent

from testutils.git import Git, GitError

Expand Down Expand Up @@ -80,7 +80,7 @@ def get_github():
access_token = get_access_token()
if not access_token:
return None
return Github(access_token, base_url=API_URL)
return Github(auth=Auth.Token(access_token), base_url=API_URL)


def get_repo(github):
Expand Down

0 comments on commit cdf7acc

Please sign in to comment.