@@ -32,13 +32,11 @@ def user_agents():
3232 header = {'sdk' : dict (name = contentstack .__package__ , version = contentstack .__version__ ),
3333 'os' : get_os_platform ,
3434 'Content-Type' : 'application/json' }
35- package = "contentstack-python, - {}" .format (contentstack .__version__ )
35+ package = "contentstack-python/v {}" .format (contentstack .__version__ )
3636 return {'User-Agent' : str (header ), "X-User-Agent" : package }
3737
3838
39- # R0903: Too few public methods (1/2) (too-few-public-methods)
40- # "pylint doesn't know what's best" - use your own judgement but as a rule.
41- class HTTPSConnection :
39+ class HTTPSConnection : # R0903: Too few public methods
4240 """Make Https Request to fetch the result as per requested url"""
4341
4442 def __init__ (self , endpoint , headers ):
@@ -72,15 +70,3 @@ def get(self, url):
7270 def update_connection_timeout (self , timeout : int ):
7371 """Facilitate to update timeout for the https request"""
7472 self .default_timeout = timeout
75-
76- # def get_complete_url(self, base_url: str, params: dict):
77- # """
78- # creates complete url with the help of base_url and query parameters
79- # :param base_url: base url
80- # :param params: query parameters
81- # :return: url
82- # """
83- # if 'query' in params:
84- # params["query"] = json.dumps(params["query"])
85- # query = urlparse.urlencode(params)
86- # return '{}&{}'.format(base_url, query)
0 commit comments