From addae4804e5cfd517264d0588c1e728155ed4ef7 Mon Sep 17 00:00:00 2001 From: Patrice Clement Date: Mon, 8 May 2017 22:51:16 +0200 Subject: this how string formatting is to be done in Python --- src/java-config-2 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/java-config-2 b/src/java-config-2 index 43b888d..93dc7b3 100755 --- a/src/java-config-2 +++ b/src/java-config-2 @@ -236,11 +236,11 @@ if __name__ == '__main__': printer = OutputFormatter(True, True) manager = EnvironmentManager(os.getenv('ROOT', ''), os.getenv('EPREFIX', '@GENTOO_PORTAGE_EPREFIX@')) - usage = "java-config [options]\n\n" - usage += "Java Configuration Utility Version @PACKAGE_VERSION@\n" - usage += "Copyright 2004-2013 Gentoo Foundation\n" - usage += "Distributed under the terms of the GNU General Public License v2\n" - usage += "Please contact the Gentoo Java Herd with problems." + usage = """java-config [options] +Java Configuration Utility Version @PACKAGE_VERSION@ +Copyright 2004-2013 Gentoo Foundation +Distributed under the terms of the GNU General Public License v2 +Please contact the Gentoo Java Herd with problems.""" parser = OptionParser(usage) parser.add_option("-V", "--version", -- cgit v1.2.3-65-gdbad