aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3
diff options
context:
space:
mode:
authorNat Williams <nwilliams@leapfrogonline.com>2012-04-16 15:39:27 -0500
committerNat Williams <nwilliams@leapfrogonline.com>2012-04-16 15:39:27 -0500
commit30c1cec25eff0a37ad494f57bfc8fce7dedf5de2 (patch)
tree7e45d97961ec773c4df4fe0ab5d7eb4e0431f725 /pygithub3
parentdef != class (diff)
downloadpython-github3-30c1cec25eff0a37ad494f57bfc8fce7dedf5de2.tar.xz
python-github3-30c1cec25eff0a37ad494f57bfc8fce7dedf5de2.zip
add docs and a few little pep8 tweaks
Diffstat (limited to 'pygithub3')
-rw-r--r--pygithub3/requests/git_data/blobs.py2
-rw-r--r--pygithub3/requests/git_data/tags.py1
-rw-r--r--pygithub3/resources/gists.py1
-rw-r--r--pygithub3/resources/git_data.py3
-rw-r--r--pygithub3/services/git_data/commits.py2
5 files changed, 4 insertions, 5 deletions
diff --git a/pygithub3/requests/git_data/blobs.py b/pygithub3/requests/git_data/blobs.py
index 9ce500a..a4bddd6 100644
--- a/pygithub3/requests/git_data/blobs.py
+++ b/pygithub3/requests/git_data/blobs.py
@@ -14,5 +14,5 @@ class Create(Request):
resource = Blob
body_schema = {
'schema': ('content', 'encoding'),
- 'required': ('content', 'encoding'), #TODO: is enc really required?
+ 'required': ('content', 'encoding'), # TODO: is enc really required?
}
diff --git a/pygithub3/requests/git_data/tags.py b/pygithub3/requests/git_data/tags.py
index 8b37f0e..dbc8da4 100644
--- a/pygithub3/requests/git_data/tags.py
+++ b/pygithub3/requests/git_data/tags.py
@@ -13,4 +13,3 @@ class Create(Request):
'schema': ('tag', 'message', 'object', 'type', 'tagger'),
'required': ('type',),
}
-
diff --git a/pygithub3/resources/gists.py b/pygithub3/resources/gists.py
index 7e9550a..89425bf 100644
--- a/pygithub3/resources/gists.py
+++ b/pygithub3/resources/gists.py
@@ -15,6 +15,7 @@ class Fork(Resource):
_dates = ('created_at', )
_maps = {'user': User}
+
def __str__(self):
return '<GistFork>'
diff --git a/pygithub3/resources/git_data.py b/pygithub3/resources/git_data.py
index 4adcf5d..4d12e01 100644
--- a/pygithub3/resources/git_data.py
+++ b/pygithub3/resources/git_data.py
@@ -17,7 +17,8 @@ class Reference(Resource):
class Tag(Resource):
_maps = {'object': Commit,
- 'tagger': Author,} # committer? tagger?
+ 'tagger': Author} # committer? tagger?
+
def __str__(self):
return '<Tag (%s)>' % getattr(self, 'tag', '')
diff --git a/pygithub3/services/git_data/commits.py b/pygithub3/services/git_data/commits.py
index 4debd95..25e8775 100644
--- a/pygithub3/services/git_data/commits.py
+++ b/pygithub3/services/git_data/commits.py
@@ -31,5 +31,3 @@ class Commits(Service):
self.make_request('git_data.commits.create', user=user, repo=repo,
body=data)
)
-
-