From 36097ffc3e6bd434300dae4778e114efdb8010ea Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Sun, 14 Apr 2013 10:18:22 +0100 Subject: [PATCH] DOC: Revert setup.py messages to use print statement --- setup.py | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/setup.py b/setup.py index 38392406..57b75225 100755 --- a/setup.py +++ b/setup.py @@ -117,26 +117,25 @@ for directory in elements: obsoleteFiles.append(path) if obsoleteFiles: - sys.stdout.write("\n") - sys.stdout.write("Obsolete files from previous Fail2Ban versions " \ - "were found on your system.\n") - sys.stdout.write("Please delete them:\n") - sys.stdout.write("\n") + print("") + print("Obsolete files from previous Fail2Ban versions were found on " + "your system.") + print("Please delete them:") + print("") for f in obsoleteFiles: - sys.stdout.write("\t" + f) - sys.stdout.write("\n") + print("\t" + f) + print("") if isdir("/usr/lib/fail2ban"): - sys.stdout.write("\n") - sys.stdout.write("Fail2ban is not installed under /usr/lib anymore. " \ - "The new location is under /usr/share. Please remove the " \ - "directory /usr/lib/fail2ban and everything under this directory.\n") - sys.stdout.write("\n") + print("") + print("Fail2ban is not installed under /usr/lib anymore. The new " + "location is under /usr/share. Please remove the directory " + "/usr/lib/fail2ban and everything under this directory.") + print("") # Update config file if sys.argv[1] == "install": - sys.stdout.write("\n") - sys.stdout.write("Please do not forget to update your configuration " - "files.\n") - sys.stdout.write("They are in /etc/fail2ban/.\n") - sys.stdout.write("\n") + print("") + print("Please do not forget to update your configuration files.") + print("They are in /etc/fail2ban/.") + print("")