Skip to content

Commit

Permalink
importers.csv: Fix keyword arguments handling
Browse files Browse the repository at this point in the history
The keyword arguments passed to the deprecated importers.csv.Importer
constructor were not forwarded to the parent class constructor.
  • Loading branch information
Jeremy Silver authored and dnicolodi committed Jan 12, 2025
1 parent 5af4cca commit ef2bf9c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion beangulp/importers/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,20 @@ def __init__(self, config, account, currency,

kwds.update(prepare_for_identifier(regexps, kwds.get('matchers')))
kwds.update(prepare_for_filing(account, kwds.get('prefix', None), institution))
super().__init__(config, account, currency, **kwds)
super().__init__(config, account, currency,
regexps=regexps,
skip_lines=skip_lines,
last4_map=last4_map,
categorizer=categorizer,
institution=institution,
debug=debug,
csv_dialect=csv_dialect,
dateutil_kwds=dateutil_kwds,
narration_sep=narration_sep,
encoding=encoding,
invert_sign=invert_sign,
**kwds
)

def extract(self, file, existing_entries=None):
account = self.file_account(file)
Expand Down

0 comments on commit ef2bf9c

Please sign in to comment.