Simplified csvfile.py super call __del__ call

This commit is contained in:
evandrocoan 2020-05-18 15:24:25 -03:00
parent 200bad3714
commit 083cc8ae4e

View File

@ -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()