diff options
-rwxr-xr-x | issues.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -34,7 +34,6 @@ from base64 import b64encode from time import sleep from getpass import getpass import requests -from requests.auth import HTTPBasicAuth import json import re @@ -42,9 +41,9 @@ def __rest_call_unchecked(method, request, data=None): global github_repo, github_user, github_password url = 'https://api.github.com/repos/%s/%s' % (github_repo, request) if method == 'PATCH': - response = requests.patch(url, data=json.dumps(data), auth=HTTPBasicAuth(github_user, github_password)) + response = requests.patch(url, data=json.dumps(data), auth=(github_user, github_password)) else: - response = requests.post(url, data=json.dumps(data), auth=HTTPBasicAuth(github_user, github_password)) + response = requests.post(url, data=json.dumps(data), auth=(github_user, github_password)) # GitHub limits API calls to 60 per minute sleep(1) return response |