old_contents: # -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  
  from github3.models import GitHubCore
  from github3.repos import Repository
  
  
  class RepositorySearchResult(GitHubCore):
      def __init__(self, data, session=None):
          result = data.copy()
          #: Score of the result
          self.score = result.pop('score')
          #: Text matches
          self.text_matches = result.pop('text_matches', [])
          #: Repository object
          self.repository = Repository(result, self)
  
      def _repr(self):
          return '<RepositorySearchResult [{0}]>'.format(self.repository)
  
new_contents: # -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  
  from github3.models import GitHubCore
  from github3.repos import Repository
  
  
  class RepositorySearchResult(GitHubCore):
      def __init__(self, data, session=None):
          super(RepositorySearchResult, self).__init__(data, session)
          result = data.copy()
          #: Score of the result
          self.score = result.pop('score')
          #: Text matches
          self.text_matches = result.pop('text_matches', [])
          #: Repository object
          self.repository = Repository(result, self)
  
      def _repr(self):
          return '<RepositorySearchResult [{0}]>'.format(self.repository)
  
subject: Add call to super to fix #238