Skip to content

Commit b0a5f41

Browse files
author
Kenneth Reitz
committed
login
1 parent 7e622e1 commit b0a5f41

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

github3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@
3636

3737
# Module namespace.
3838

39-
from .core import from_pass
39+
from .core import login

github3/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
This module provides the basic API interface for Heroku.
88
"""
99

10+
import json
11+
1012
import requests
11-
from .compat import json
1213
from .helpers import is_collection
1314
from .structures import KeyedListResource
1415
from .models import *

github3/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from .api import Github
1111

12-
def from_key(username, password):
12+
def login(username, password):
1313
"""Returns an authenticated Github instance, via API Key."""
1414

1515
gh = Github()

0 commit comments

Comments
 (0)