Skip to content

Commit d480b75

Browse files
authored
chore(versions): update remaining f-strings (#1477)
Co-authored-by: Jordan Woods <[email protected]>
1 parent 9a31004 commit d480b75

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tableauserverclient/_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, env=
9494
return None, None
9595
else:
9696
if verbose:
97-
print("unable to find command, tried {}".format(commands))
97+
print(f"unable to find command, tried {commands}")
9898
return None, None
9999
stdout = p.communicate()[0].strip()
100100
if sys.version_info[0] >= 3:
@@ -131,7 +131,7 @@ def versions_from_parentdir(parentdir_prefix, root, verbose):
131131
root = os.path.dirname(root) # up a level
132132

133133
if verbose:
134-
print("Tried directories {} but none started with prefix {}".format(str(rootdirs), parentdir_prefix))
134+
print(f"Tried directories {str(rootdirs)} but none started with prefix {parentdir_prefix}")
135135
raise NotThisMethod("rootdir doesn't start with parentdir_prefix")
136136

137137

tableauserverclient/server/endpoint/endpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _make_request(
140140
self._check_status(server_response, url)
141141

142142
loggable_response = self.log_response_safely(server_response)
143-
logger.debug("Server response from {0}".format(url))
143+
logger.debug(f"Server response from {url}")
144144
# uncomment the following to log full responses in debug mode
145145
# BE CAREFUL WHEN SHARING THESE RESULTS - MAY CONTAIN YOUR SENSITIVE DATA
146146
# logger.debug(loggable_response)

test/test_schedule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def test_get_monthly_by_id_2(self) -> None:
165165
response_xml = f.read().decode("utf-8")
166166
with requests_mock.mock() as m:
167167
schedule_id = "8c5caf33-6223-4724-83c3-ccdc1e730a07"
168-
baseurl = "{}/schedules/{}".format(self.server.baseurl, schedule_id)
168+
baseurl = f"{self.server.baseurl}/schedules/{schedule_id}"
169169
m.get(baseurl, text=response_xml)
170170
schedule = self.server.schedules.get_by_id(schedule_id)
171171
self.assertIsNotNone(schedule)

0 commit comments

Comments
 (0)