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

Skip to content

Commit 3a62f69

Browse files
committed
Convert RepositorySearchResult to ShortRepository
It isn't exactly correct, but it's better than compromising on the design of Repository.
1 parent d0f1e68 commit 3a62f69

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

github3/search/repository.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 RepositorySearchResult(GitHubCore):
8+
class RepositorySearchResult(models.GitHubCore):
99
def _update_attributes(self, data):
1010
result = data.copy()
1111

@@ -20,7 +20,7 @@ def _update_attributes(self, data):
2020
del result['text_matches']
2121

2222
#: Repository object
23-
self.repository = Repository(result, self)
23+
self.repository = repos.ShortRepository(result, self)
2424

2525
def _repr(self):
2626
return '<RepositorySearchResult [{0}]>'.format(self.repository)

0 commit comments

Comments
 (0)
0