From 065eaddca366bf5185b318fb9193bb588c6f7101 Mon Sep 17 00:00:00 2001 From: NicJA Date: Thu, 7 Jul 2011 22:04:21 +0000 Subject: [PATCH] use pythons printf style syntax - the string format method isn't available in all python versions. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@39888 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/dos/genstrings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rom/dos/genstrings.py b/rom/dos/genstrings.py index 10a87e505b..ebc42b0063 100755 --- a/rom/dos/genstrings.py +++ b/rom/dos/genstrings.py @@ -54,7 +54,7 @@ while (n < len(numbers) - 1): if (int(numbers[n]) == prev + 1): last = ids[n] else: - print " {0}, {1},".format(first, last) + print " %s, %s," % (first, last) first = ids[n] last = ids[n] print " 0, 0" @@ -68,8 +68,8 @@ print " */" print "const char err_Strings[] =" print "{" for str_line in strings: - print " {0},".format(len(str_line) + 1), + print " %d," % (len(str_line) + 1) for c in str_line: - print "'{0}',".format(c), + print "'%s'," % c, print "0," print "};" -- 2.11.4.GIT