From ec7001837a85ded38062d8ebab055d7faf851f3f Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Wed, 24 Feb 2010 23:02:48 +0000 Subject: [PATCH] Adding named variables to format strings for errors in 'make distcheck' to work. svn: r14462 --- src/plugins/lib/libgedcom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/lib/libgedcom.py b/src/plugins/lib/libgedcom.py index 276934b3f..a94fe2459 100644 --- a/src/plugins/lib/libgedcom.py +++ b/src/plugins/lib/libgedcom.py @@ -5494,8 +5494,8 @@ class GedcomParser(UpdateCallback): line = self.__get_next_line() if self.__level_is_finished(line, level): if skips and self.want_parse_warnings: - msg = _("skipped %d subordinate(s) at line %d")\ - % (skips, line.line - skips) + msg = _("skipped %(skip)d subordinate(s) at line %(line)d") % { + 'skip' : skips, 'line' : line.line - skips } self.__warn(msg) return skips += 1 @@ -5929,4 +5929,4 @@ def __build_date_string(day, mon, year, bce, mmap): retval = "(%d %s)" % (day, mmap[mon]) else: retval = "%d %s %d%s" % (day, mmap[mon], year, bce) - return retval \ No newline at end of file + return retval