From 4bf6ab292d7a7db7cd74813b7ce41d5e4154c99e Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Wed, 24 Feb 2010 23:01:38 +0000 Subject: [PATCH] Adding named variables to format strings for errors in 'make distcheck' to work. svn: r14461 --- src/plugins/import/ImportCsv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/import/ImportCsv.py b/src/plugins/import/ImportCsv.py index c723ed549..b91893a6a 100644 --- a/src/plugins/import/ImportCsv.py +++ b/src/plugins/import/ImportCsv.py @@ -330,8 +330,8 @@ class CSVParser(object): try: data = [[r.strip() for r in row] for row in reader] except csv.Error, e: - ErrorDialog(_('format error: file %s, line %d: %s') % - (self.filename, reader.line_num, e)) + ErrorDialog(_('format error: file %(fname)s, line %(line)d: %(zero)s')) % { + 'fname' : self.filename, 'line' : reader.line_num, 'zero' : e } try: fp.close() except: