def get_url_with_auth(self, url) -> str:
if not self._username:<EOL><INDENT>return url<EOL><DEDENT>url += '<STR_LIT>'.format(self._username)<EOL>if not self._password:<EOL><INDENT>return url<EOL><DEDENT>return url + '<STR_LIT>'.format(self._password)<EOL>
Add the auth credentials to a url (if needed).