Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd809fef

Browse files
author
Gauvain Pocentek
committed
pep8 again
1 parentc5ad540 commitd809fef

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

‎gitlab/__init__.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ def http_get(self, path, query_data={}, streamed=False, **kwargs):
673673
notstreamed):
674674
try:
675675
returnresult.json()
676-
exceptExceptionase:
676+
exceptException:
677677
raiseGitlaParsingError(
678678
message="Failed to parse the server message")
679679
else:
@@ -726,8 +726,9 @@ def http_post(self, path, query_data={}, post_data={}, **kwargs):
726726
post_data=post_data,**kwargs)
727727
try:
728728
returnresult.json()
729-
exceptExceptionase:
730-
raiseGitlabParsingError(message="Failed to parse the server message")
729+
exceptException:
730+
raiseGitlabParsingError(
731+
message="Failed to parse the server message")
731732

732733
defhttp_put(self,path,query_data={},post_data={},**kwargs):
733734
"""Make a PUT request to the Gitlab server.
@@ -751,8 +752,9 @@ def http_put(self, path, query_data={}, post_data={}, **kwargs):
751752
post_data=post_data,**kwargs)
752753
try:
753754
returnresult.json()
754-
exceptExceptionase:
755-
raiseGitlabParsingError(message="Failed to parse the server message")
755+
exceptException:
756+
raiseGitlabParsingError(
757+
message="Failed to parse the server message")
756758

757759
defhttp_delete(self,path,**kwargs):
758760
"""Make a PUT request to the Gitlab server.
@@ -763,13 +765,12 @@ def http_delete(self, path, **kwargs):
763765
**kwargs: Extra data to make the query (e.g. sudo, per_page, page)
764766
765767
Returns:
766-
True.
768+
The requests object.
767769
768770
Raises:
769771
GitlabHttpError: When the return code is not 2xx
770772
"""
771-
result=self.http_request('delete',path,**kwargs)
772-
returnTrue
773+
returnself.http_request('delete',path,**kwargs)
773774

774775

775776
classGitlabList(object):
@@ -798,8 +799,9 @@ def _query(self, url, query_data={}, **kwargs):
798799

799800
try:
800801
self._data=result.json()
801-
exceptExceptionase:
802-
raiseGitlabParsingError(message="Failed to parse the server message")
802+
exceptException:
803+
raiseGitlabParsingError(
804+
message="Failed to parse the server message")
803805

804806
self._current=0
805807

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp