mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Fix assertion failure on big integers (issue #116)
This commit is contained in:
+2
-2
@@ -68,9 +68,9 @@ class Commit(GithubObject.GithubObject):
|
||||
|
||||
def create_comment(self, body, line=GithubObject.NotSet, path=GithubObject.NotSet, position=GithubObject.NotSet):
|
||||
assert isinstance(body, (str, unicode)), body
|
||||
assert line is GithubObject.NotSet or isinstance(line, int), line
|
||||
assert line is GithubObject.NotSet or isinstance(line, (int, long)), line
|
||||
assert path is GithubObject.NotSet or isinstance(path, (str, unicode)), path
|
||||
assert position is GithubObject.NotSet or isinstance(position, int), position
|
||||
assert position is GithubObject.NotSet or isinstance(position, (int, long)), position
|
||||
post_parameters = {
|
||||
"body": body,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user