##// END OF EJS Templates
chore(http-client): small refactor and use fstrings
super-admin -
r5260:e241ac2a default
parent child Browse files
Show More
@@ -148,7 +148,7 b' def _streaming_remote_call(url, payload,'
148
148
149 class ServiceConnection(object):
149 class ServiceConnection(object):
150 def __init__(self, server_and_port, backend_endpoint, session_factory):
150 def __init__(self, server_and_port, backend_endpoint, session_factory):
151 self.url = urllib.parse.urljoin('http://%s' % server_and_port, backend_endpoint)
151 self.url = urllib.parse.urljoin(f'http://{server_and_port}', backend_endpoint)
152 self._session_factory = session_factory
152 self._session_factory = session_factory
153
153
154 def __getattr__(self, name):
154 def __getattr__(self, name):
@@ -170,8 +170,8 b' class ServiceConnection(object):'
170 class RemoteVCSMaker(object):
170 class RemoteVCSMaker(object):
171
171
172 def __init__(self, server_and_port, backend_endpoint, backend_type, session_factory):
172 def __init__(self, server_and_port, backend_endpoint, backend_type, session_factory):
173 self.url = urllib.parse.urljoin('http://%s' % server_and_port, backend_endpoint)
173 self.url = urllib.parse.urljoin(f'http://{server_and_port}', backend_endpoint)
174 self.stream_url = urllib.parse.urljoin('http://%s' % server_and_port, backend_endpoint+'/stream')
174 self.stream_url = urllib.parse.urljoin(f'http://{server_and_port}', backend_endpoint+'/stream')
175
175
176 self._session_factory = session_factory
176 self._session_factory = session_factory
177 self.backend_type = backend_type
177 self.backend_type = backend_type
General Comments 0
You need to be logged in to leave comments. Login now