CODE: Fix reference to can_import()
This commit is contained in:
parent
5b40134e83
commit
833ca99487
1 changed files with 2 additions and 2 deletions
4
CODE.rst
4
CODE.rst
|
@ -30,7 +30,7 @@ Importers
|
||||||
|
|
||||||
At a high level, importers read a source file, and generate data for output entries.
|
At a high level, importers read a source file, and generate data for output entries.
|
||||||
|
|
||||||
Class method ``can_handle(source_file)``
|
Class method ``can_import(source_file)``
|
||||||
Returns true if the importer can generate entries from the given source file object, false otherwise.
|
Returns true if the importer can generate entries from the given source file object, false otherwise.
|
||||||
|
|
||||||
``__init__(source_file)``
|
``__init__(source_file)``
|
||||||
|
@ -75,7 +75,7 @@ Main loop
|
||||||
|
|
||||||
At a high level, import2ledger handles each input file this way::
|
At a high level, import2ledger handles each input file this way::
|
||||||
|
|
||||||
usable_importers = importers where can_handle(input_file) returns true
|
usable_importers = importers where can_import(input_file) returns true
|
||||||
for importer_class in usable_importers:
|
for importer_class in usable_importers:
|
||||||
input_file.seek(0)
|
input_file.seek(0)
|
||||||
for entry_data in importer_class(input_file):
|
for entry_data in importer_class(input_file):
|
||||||
|
|
Loading…
Reference in a new issue