From 3954272a046e13961d8ae8802b6af2f86db43715 Mon Sep 17 00:00:00 2001 From: Odile@pc2050 <odile@pc2050.irap> Date: Tue, 19 Dec 2017 12:20:01 +0100 Subject: [PATCH] Fix #1. Use python 3 string format --- src/files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/files.py b/src/files.py index f4065c1..5c39ce1 100644 --- a/src/files.py +++ b/src/files.py @@ -86,13 +86,13 @@ if __name__ == '__main__': if "A" in c.upper(): """ Add a prefix """ prefix = input("Choose a prefix to rename files (P0, P1, P2): ") - print("Your input prefix is: {} ", prefix) + print("Your input prefix is: {} ".format(prefix)) p.add_prefix(prefix) print("... renaming with prefix is DONE !") elif "R" in c.upper(): """ Remove a prefix """ prefix = input("Choose a prefix to remove (P0, P1, P2): ") - print("Your input prefix is: {} ", prefix) + print("Your input prefix is: {} ".format(prefix)) p.remove_prefix(prefix) print("... removing the prefix is DONE !") -- libgit2 0.21.2