8000 Merge pull request #757 from sigmavirus24/gistfile-filename · pythonthings/github3.py@95df621 · GitHub
[go: up one dir, main page]

Skip to content

Commit 95df621

Browse files
authored
Merge pull request sigmavirus24#757 from sigmavirus24/gistfile-filename
Use filename in *GistFile reprs
2 parents 541468c + 54e1be1 commit 95df621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github3/gists/file.py

Lines changed: 1 addition & 1 deletion
< 374E tr class="diff-line-row">
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def _update_attributes(self, gistfile):
1616
self.type = gistfile['type']
1717

1818
def _repr(self):
19-
return '<{s.class_name} [{s.name}]>'.format(s=self)
19+
return '<{s.class_name} [{s.filename}]>'.format(s=self)
2020

2121
def content(self):
2222
"""Retrieve contents of file from key 'raw_url'.

0 commit comments

Comments
 (0)
0