1
1
# coding: utf-8
2
2
3
- # © Copyright IBM Corporation 2020.
3
+ # © Copyright IBM Corporation 2020, 2021 .
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
27
27
28
28
old_init = CloudantV1 .__init__
29
29
30
- # pylint: disable=missing-function-docstring
31
- def new_init (self , authenticator : Authenticator = None ):
30
+
31
+ def new_init (self , authenticator : Authenticator = None ): # pylint: disable=missing-docstring
32
32
old_init (self , authenticator )
33
33
if isinstance (authenticator , CouchDbSessionAuthenticator ):
34
34
# Replacing BaseService's http.cookiejar.CookieJar as RequestsCookieJar supports update(CookieJar)
@@ -38,8 +38,8 @@ def new_init(self, authenticator: Authenticator = None):
38
38
39
39
old_set_service_url = CloudantV1 .set_service_url
40
40
41
- # pylint: disable=missing-function-docstring
42
- def new_set_service_url (self , service_url : str ):
41
+
42
+ def new_set_service_url (self , service_url : str ): # pylint: disable=missing-docstring
43
43
old_set_service_url (self , service_url )
44
44
try :
45
45
if isinstance (self .authenticator , CouchDbSessionAuthenticator ):
@@ -50,8 +50,8 @@ def new_set_service_url(self, service_url: str):
50
50
51
51
old_set_default_headers = CloudantV1 .set_default_headers
52
52
53
- # pylint: disable=missing-function-docstring
54
- def new_set_default_headers (self , headers : Dict [str , str ]):
53
+
54
+ def new_set_default_headers (self , headers : Dict [str , str ]): # pylint: disable=missing-docstring
55
55
old_set_default_headers (self , headers )
56
56
if isinstance (self .authenticator , CouchDbSessionAuthenticator ):
57
57
combined_headers = {}
@@ -66,8 +66,8 @@ def new_set_default_headers(self, headers: Dict[str, str]):
66
66
67
67
old_set_disable_ssl_verification = CloudantV1 .set_disable_ssl_verification
68
68
69
- # pylint: disable=missing-function-docstring
70
- def new_set_disable_ssl_verification (self , status : bool = False ) -> None :
69
+
70
+ def new_set_disable_ssl_verification (self , status : bool = False ) -> None : # pylint: disable=missing-docstring
71
71
old_set_disable_ssl_verification (self , status )
72
72
if isinstance (self .authenticator , CouchDbSessionAuthenticator ):
73
73
self .authenticator .token_manager .set_disable_ssl_verification (status )
0 commit comments