Remove f-strings from setup script

This reduces the Python requirement from 3.6 to 3.4.
This commit is contained in:
Trysdyn Black 2020-05-02 01:38:52 -07:00
parent 881aceb6e1
commit 6932180fb9

View file

@ -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)