mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[IMP] fix keys_to_validate, remove useless unlink, fix dialect
This commit is contained in:
@@ -28,7 +28,8 @@ def UnicodeDictReader(utf8_data, **kwargs):
|
||||
utf8_data.seek(pos)
|
||||
if not kwargs.get('dialect'):
|
||||
dialect = sniffer.sniff(sample_data, delimiters=',;\t')
|
||||
del kwargs['dialect']
|
||||
if 'dialect' in kwargs:
|
||||
del kwargs['dialect']
|
||||
else:
|
||||
dialect = kwargs.pop('dialect')
|
||||
csv_reader = csv.DictReader(utf8_data, dialect=dialect, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user