Simplified csvfile.py super call __del__ call
This commit is contained in:
parent
200bad3714
commit
083cc8ae4e
@ -141,12 +141,10 @@ class TextImporter(NoteImporter):
|
||||
|
||||
def __del__(self):
|
||||
self.close()
|
||||
try:
|
||||
super().__del__ # type: ignore
|
||||
except AttributeError:
|
||||
pass
|
||||
else:
|
||||
super().__del__(self) # type: ignore
|
||||
zuper = super()
|
||||
if hasattr(zuper, "__del__"):
|
||||
# pylint: disable=no-member
|
||||
zuper.__del__(self) # type: ignore
|
||||
|
||||
def noteFromFields(self, fields: List[str]) -> ForeignNote:
|
||||
note = ForeignNote()
|
||||
|
Loading…
Reference in New Issue
Block a user