Fix assertion failure on big integers (issue #116)

This commit is contained in:
Vincent Jacques
2012-11-20 19:34:55 +01:00
parent 808fe92191
commit a6972c03c3
34 changed files with 120 additions and 110 deletions
+2 -2
View File
@@ -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,
}