Skip to content
Snippets Groups Projects
Commit 78c437fd authored by Ian Cordasco's avatar Ian Cordasco
Browse files

Merge pull request #271 from pamelafox/patch-1

Also put json.get() in the "if json is not None" check
parents e09add93 f748d7b7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -29,9 +29,9 @@ class GitHubObject(object):
if json is not None:
self.etag = json.pop('ETag', None)
self.last_modified = json.pop('Last-Modified', None)
self._uniq = json.get('url', None)
self._json_data = json
self._uniq = json.get('url', None)
def to_json(self):
"""Return the json representing this object."""
return self._json_data
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment