Skip to content

Commit 6df9fb1

Browse files
author
Alejandro Casanovas
committed
removed f strings
1 parent 7bab779 commit 6df9fb1

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

examples/storageDownloadFile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ storage = account.storage() # here we get the storage instance that handles all
2929
# get the default drive
3030
my_drive = storage.get_default_drive()
3131

32-
print(f"Searching for {f_name}...")
32+
print("Searching for {}...".format(f_name))
3333
files = my_drive.search(f_name, limit=1)
3434
if files:
3535
numberDoc = files[0]
@@ -40,7 +40,7 @@ else:
4040
exit()
4141

4242
print("Reading sheet to dataframe")
43-
df = pd.read_excel(f'{dl_path}/{f_name}')
43+
df = pd.read_excel('{}/{}'.format(dl_path, f_name))
4444

4545
with pd.option_context('display.max_rows', None, 'display.max_columns', None):
4646
print(df)

examples/token_backends.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ def should_refresh_token(self, con=None):
160160
return None
161161
except LockException:
162162
self.fs_wait = True
163-
log.warning('Oauth file locked. Sleeping for 2 seconds...'
164-
f'retrying {_ - 1} more times.')
163+
log.warning('Oauth file locked. Sleeping for 2 seconds... retrying {} more times.'.format(_ - 1))
165164
time.sleep(2)
166165
log.debug('Waking up and rechecking token file for update'
167166
' from other instance...')
@@ -173,5 +172,4 @@ def should_refresh_token(self, con=None):
173172

174173
# if we exit the loop, that means we were locked out of the file after
175174
# multiple retries give up and throw an error - something isn't right
176-
raise RuntimeError('Could not access locked token file after '
177-
f'{self.max_tries}')
175+
raise RuntimeError('Could not access locked token file after {}'.format(self.max_tries))

0 commit comments

Comments
 (0)