Change Exportgedcoms open

This commit is contained in:
Sam Manzi 2016-04-27 19:28:26 +10:00
parent 35b160ca0b
commit af9baca35e
No known key found for this signature in database
GPG Key ID: F4A16068AE36B402

View File

@ -238,17 +238,17 @@ class GedcomWriter(UpdateCallback):
"""
self.dirname = os.path.dirname (filename)
self.gedcom_file = open(filename, "w", encoding='utf-8')
self._header(filename)
self._submitter()
self._individuals()
self._families()
self._sources()
self._repos()
self._notes()
with open(filename, "w", encoding='utf-8') as self.gedcom_file:
self._header(filename)
self._submitter()
self._individuals()
self._families()
self._sources()
self._repos()
self._notes()
self._writeln(0, "TRLR")
self._writeln(0, "TRLR")
self.gedcom_file.close()
return True
def _writeln(self, level, token, textlines="", limit=72):