diff --git a/github3/gists/file.py b/github3/gists/file.py index 3bf6f11fe..661c4d2dd 100644 --- a/github3/gists/file.py +++ b/github3/gists/file.py @@ -16,7 +16,7 @@ def _update_attributes(self, gistfile): self.type = gistfile['type'] def _repr(self): - return '<{s.class_name} [{s.name}]>'.format(s=self) + return '<{s.class_name} [{s.filename}]>'.format(s=self) def content(self): """Retrieve contents of file from key 'raw_url'.