Adding named variables to format strings for errors in 'make distcheck' to work.
svn: r14461
This commit is contained in:
parent
6f6c74ae8b
commit
4bf6ab292d
@ -330,8 +330,8 @@ class CSVParser(object):
|
|||||||
try:
|
try:
|
||||||
data = [[r.strip() for r in row] for row in reader]
|
data = [[r.strip() for r in row] for row in reader]
|
||||||
except csv.Error, e:
|
except csv.Error, e:
|
||||||
ErrorDialog(_('format error: file %s, line %d: %s') %
|
ErrorDialog(_('format error: file %(fname)s, line %(line)d: %(zero)s')) % {
|
||||||
(self.filename, reader.line_num, e))
|
'fname' : self.filename, 'line' : reader.line_num, 'zero' : e }
|
||||||
try:
|
try:
|
||||||
fp.close()
|
fp.close()
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user