コード例 #1
0
 def __repr__(self):
     d = OrderedDict()
     d['line'] = self.line
     d['element_id'] = self.element_id
     d['original_file'] = self.original_file
     s = "SnippetLocation"
     s += '\n' + indent(pretty_print_dict(d), '| ')
     return s
コード例 #2
0
 def __repr__(self):
     d = OrderedDict()
     d['filename'] = friendly_path(self.filename)
     if self.github_info is not None:
         d['github'] = self.github_info
     else:
         d['github'] = '(not available)'
     s = "LocalFile"
     s += '\n' + indent(pretty_print_dict(d), '| ')
     return s
コード例 #3
0
    def indication(self):
        d = OrderedDict()

        d['org'] = self.org
        d['repository'] = '%s/%s' % (self.org, self.repo)
        d['path'] = self.path
        d['branch'] = self.branch
        d['commit'] = self.commit
        d['edit here'] = self.edit_url

        return pretty_print_dict(d)
コード例 #4
0
    def __repr__(self):
        d = OrderedDict()

        d['org'] = self.org
        d['repo'] = self.repo
        d['path'] = self.path
        #         d['blob_url'] = self.blob_url
        #         d['edit_url'] = self.edit_url
        d['commit'] = self.commit
        d['branch'] = self.branch

        s = "GithubLocation"
        s += '\n' + indent(pretty_print_dict(d), '| ')
        return s
コード例 #5
0
    def __repr__(self):
        d = OrderedDict()

        # d['org'] = self.org
        d['repo'] = '%s/%s' % (self.org, self.repo)
        d['branch'] = self.branch
        d['path'] = self.path
        #         d['blob_url'] = self.blob_url
        #         d['edit_url'] = self.edit_url
        d['author'] = self.author
        d['last_modified'] = self.last_modified
        d['commit'] = self.commit

        s = "GithubLocation"
        s += '\n' + indent(pretty_print_dict(d), '| ')
        return s