8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f301b2 commit 6d36b2cCopy full SHA for 6d36b2c
github3/pulls.py
@@ -50,7 +50,7 @@ def _repr(self):
50
return '<{0} [{1}]>'.format(self.direction, self.label)
51
52
53
-class PullFile(GitHubObject):
+class PullFile(GitHubCore):
54
55
"""The :class:`PullFile <PullFile>` object.
56
@@ -80,6 +80,14 @@ def _update_attributes(self, pfile):
80
def _repr(self):
81
return '<Pull Request File [{0}]>'.format(self.filename)
82
83
+ def contents(self, stream=False):
84
+ """Return the contents of the raw file.
85
+
86
+ :param stream: When true, the resulting object can be iterated over via
87
+ ``iter_contents``.
88
+ """
89
+ return self.session.get(self.raw_url, stream=stream)
90
91
92
class PullRequest(GitHubCore):
93
0 commit comments