aboutsummaryrefslogtreecommitdiffstats
path: root/github3/models/gists.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2011-11-29 22:19:26 +0100
committerDavid Medina <davidmedina9@gmail.com>2011-11-29 23:21:40 +0100
commit88e54d4dc2e9c49dadf1a9b8e14fc107270c9415 (patch)
tree8c12bef6b6f8baf661ad09fcc4122b2145a81e02 /github3/models/gists.py
parentMimeType mixin (diff)
downloadpython-github3-88e54d4dc2e9c49dadf1a9b8e14fc107270c9415.tar.xz
python-github3-88e54d4dc2e9c49dadf1a9b8e14fc107270c9415.zip
pep8
Diffstat (limited to 'github3/models/gists.py')
-rw-r--r--github3/models/gists.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/github3/models/gists.py b/github3/models/gists.py
index b317f57..13f3a62 100644
--- a/github3/models/gists.py
+++ b/github3/models/gists.py
@@ -17,6 +17,7 @@ class File(BaseResource):
def __repr__(self):
return '<File gist> %s' % self.filename
+
class GistFork(BaseResource):
""" GistFork model """
@@ -31,6 +32,7 @@ class GistFork(BaseResource):
def __repr__(self):
return '<Gist fork> %s>' % self.user.login
+
class ChangeStatus(BaseResource):
""" ChangeStatus model """
@@ -43,6 +45,7 @@ class ChangeStatus(BaseResource):
def __repr__(self):
return '<Gist history> change_status>'
+
class GistHistory(BaseResource):
""" """
@@ -57,18 +60,21 @@ class GistHistory(BaseResource):
def __repr__(self):
return '<GistHistory %s/%s>' % (self.user, self.committed_at)
+
class Gist(BaseResource):
""" """
@classmethod
def idl(self):
return {
- 'strs': ['url', 'description', 'html_url', 'git_pull_url', 'git_push_url'],
+ 'strs': ['url', 'description', 'html_url', 'git_pull_url',
+ 'git_push_url'],
'ints': ['id', 'comments'],
'bools': ['public'],
'dates': ['created_at'],
'maps': {'user': User},
- 'collection_maps': {'files': File, 'forks': GistFork, 'history': GistHistory},
+ 'collection_maps': {'files': File, 'forks': GistFork,
+ 'history': GistHistory},
}
def __repr__(self):