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:
@@ -83,7 +83,7 @@ class RepositoryKey(GithubObject.GithubObject):
|
||||
|
||||
def _useAttributes(self, attributes):
|
||||
if "id" in attributes: # pragma no branch
|
||||
assert attributes["id"] is None or isinstance(attributes["id"], int), attributes["id"]
|
||||
assert attributes["id"] is None or isinstance(attributes["id"], (int, long)), attributes["id"]
|
||||
self._id = attributes["id"]
|
||||
if "key" in attributes: # pragma no branch
|
||||
assert attributes["key"] is None or isinstance(attributes["key"], (str, unicode)), attributes["key"]
|
||||
|
||||
Reference in New Issue
Block a user