Remove f-strings from setup script
This reduces the Python requirement from 3.6 to 3.4.
This commit is contained in:
parent
881aceb6e1
commit
6932180fb9
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ def check_and_remove(source, destination, force=False):
|
|||
os.remove(destination)
|
||||
# Force mode diseabled, error out
|
||||
else:
|
||||
raise OSError(f"{destination} exists as a file and --force not provided")
|
||||
raise OSError(destination + " exists as a file and --force not provided")
|
||||
|
||||
# File doesn't exists or undefined "thing" happened, return True to try to
|
||||
# write, and if something goes wrong, we'll see the OSError
|
||||
|
@ -78,7 +78,7 @@ def install_dotfiles(source_dir, dest_dir, exclusions, force=False):
|
|||
# Check for and remove the destination file if it exists
|
||||
# If a removal occurs, catch True and deploy the symlink
|
||||
if check_and_remove(source, destination, force):
|
||||
print(f"Symlinking {source} => {destination}")
|
||||
print("Symlinking " + source + " => " + destination)
|
||||
os.symlink(source, destination)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue