mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
close text file after import
This commit is contained in:
parent
a50ec2649a
commit
17630fa339
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ class TextImporter(Importer):
|
||||||
cards.append(card)
|
cards.append(card)
|
||||||
self.log = log
|
self.log = log
|
||||||
self.ignored = ignored
|
self.ignored = ignored
|
||||||
|
self.fileobj.close()
|
||||||
return cards
|
return cards
|
||||||
|
|
||||||
def sniff(self):
|
def sniff(self):
|
||||||
|
|
Loading…
Reference in a new issue