Skip to content

Commit

Permalink
minor docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed Mar 22, 2016
1 parent 43e8a2a commit ccbea3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions gitlab/exceptions.py
Expand Up @@ -110,9 +110,10 @@ def raise_error_from_response(response, error, expected_code=200):
If response status code is 401, raises instead GitlabAuthenticationError.
response: requests response object
error: Error-class or dict {return-code => class} of possible error class
to raise. Should be inherited from GitLabError
Args:
response: requests response object
error: Error-class or dict {return-code => class} of possible error
class to raise. Should be inherited from GitLabError
"""

if expected_code == response.status_code:
Expand Down
6 changes: 3 additions & 3 deletions gitlab/objects.py
Expand Up @@ -1569,7 +1569,7 @@ def search(self, query, **kwargs):
**kwargs: Additional arguments to send to GitLab.
Returns:
list(Project): A list of matching projects.
list(gitlab.Gitlab.Project): A list of matching projects.
"""
return self.gitlab._raw_list("/projects/search/" + query, Project,
**kwargs)
Expand All @@ -1582,7 +1582,7 @@ def all(self, **kwargs):
**kwargs: Additional arguments to send to GitLab.
Returns:
list(Project): The list of projects.
list(gitlab.Gitlab.Project): The list of projects.
"""
return self.gitlab._raw_list("/projects/all", Project, **kwargs)

Expand All @@ -1594,7 +1594,7 @@ def owned(self, **kwargs):
**kwargs: Additional arguments to send to GitLab.
Returns:
list(Project): The list of owned projects.
list(gitlab.Gitlab.Project): The list of owned projects.
"""
return self.gitlab._raw_list("/projects/owned", Project, **kwargs)

Expand Down

0 comments on commit ccbea3f

Please sign in to comment.