From 0ef37df607318a0a35e5d085f69e35e80285898c Mon Sep 17 00:00:00 2001 From: Olivier Berten Date: Mon, 27 Nov 2023 17:56:23 +0100 Subject: [PATCH] Fix invalid mode error with Python 3.11 --- gramps/plugins/importer/importgeneweb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/importer/importgeneweb.py b/gramps/plugins/importer/importgeneweb.py index 20b1c8bf8c3..aa3d6815345 100644 --- a/gramps/plugins/importer/importgeneweb.py +++ b/gramps/plugins/importer/importgeneweb.py @@ -195,7 +195,7 @@ class GeneWebParser: def __init__(self, dbase, file): self.db = dbase if file: # Unit tests can create the parser w/o underlying file - self.f = open(file, "rUb") + self.f = open(file, "rb") self.filename = file self.encoding = "iso-8859-1" self.gwplus = False