From 3245788657a0194275c0a1798c415f4caa5d36a9 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 13 Jul 2004 03:08:35 +0000 Subject: [PATCH] * src/plugins/ReadGedcom.py (GedcomParser.__init__): Use universal newline mode to work with Mac newlines. svn: r3269 --- ChangeLog | 2 ++ src/plugins/ReadGedcom.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7e748d499..64db052b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ * src/plugins/WriteGedcom.py: Switch from radiobuttons to menu for the encoding choice. * src/plugins/gedcomexport.glade: Clean up interface. + * src/plugins/ReadGedcom.py (GedcomParser.__init__): Use + universal newline mode to work with Mac newlines. 2004-07-11 Don Allingham * src/FamilyView.py: handle deleting of parent properly diff --git a/src/plugins/ReadGedcom.py b/src/plugins/ReadGedcom.py index d0bdc9d17..11663d897 100644 --- a/src/plugins/ReadGedcom.py +++ b/src/plugins/ReadGedcom.py @@ -220,7 +220,7 @@ class GedcomParser: self.is_ftw = 0 self.idswap = {} - self.f = open(file,"r") + self.f = open(file,"rU") self.filename = file self.index = 0 self.backoff = 0