From 638f590eb3a37c0da7cd99b7c57b34e552844690 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 9 Mar 2017 23:40:15 +0000 Subject: [PATCH] Prevent warnings when importing xml from stdin --- gramps/plugins/importer/importxml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/importer/importxml.py b/gramps/plugins/importer/importxml.py index 4f0c4ddc8..c52c988b6 100644 --- a/gramps/plugins/importer/importxml.py +++ b/gramps/plugins/importer/importxml.py @@ -119,7 +119,7 @@ def importData(database, filename, user): database.smap = {} database.pmap = {} database.fmap = {} - line_cnt = 0 + line_cnt = 1 person_cnt = 0 with ImportOpenFileContextManager(filename, user) as xml_file: @@ -900,7 +900,7 @@ class GrampsParser(UpdateCallback): gramps_ids[id_] = gramps_id return gramps_ids[id_] - def parse(self, ifile, linecount=0, personcount=0): + def parse(self, ifile, linecount=1, personcount=0): """ Parse the xml file :param ifile: must be a file handle that is already open, with position