Fixed another error in string formatting using {}.
svn: r14610
This commit is contained in:
parent
5647b44801
commit
c134937e9d
@ -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 %(fname)s, line %(line)d: %(zero)s')) % {
|
ErrorDialog(_('format error: file %(fname)s, line %(line)d: %(zero)s') % {
|
||||||
'fname' : self.filename, 'line' : reader.line_num, 'zero' : e }
|
'fname' : self.filename, 'line' : reader.line_num, 'zero' : e })
|
||||||
try:
|
try:
|
||||||
fp.close()
|
fp.close()
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user