8000 Convert CodeSearchResult to ShortRepository · pythonthings/github3.py@d6b80a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit d6b80a9

Browse files
committed
Convert CodeSearchResult to ShortRepository
1 parent 8c6035f commit d6b80a9

File tree

8000

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

github3/search/code.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import unicode_literals
33

4-
from ..models import GitHubCore
5-
from ..repos import Repository
4+
from .. import models
5+
from .. import repos
66

77

8-
class CodeSearchResult(GitHubCore):
8+
class CodeSearchResult(models.GitHubCore):
99

1010
def _update_attributes(self, data):
1111
self._api = self._get_attribute(data, 'url')
@@ -27,7 +27,7 @@ def _update_attributes(self, data):
2727

2828
#: Repository the code snippet belongs to
2929
self.repository = self._class_attribute(
30-
data, 'repository', Repository, self
30+
data, 'repository', repos.ShortRepository, self
3131
)
3232

3333
#: Score of the result

0 commit comments

Comments
 (0)
0