From ee876d287a0bec0da2da55f1740ca7221f37c614 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 22 Jun 2005 20:41:08 +0000 Subject: [PATCH] * src/TarFile.py (extract_files): insert missing 'replace' call. svn: r4862 --- gramps2/ChangeLog | 1 + gramps2/src/TarFile.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 0756d482c..17354b1af 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -7,6 +7,7 @@ Remove unneeded method. * src/FamilyView.py (remove_child_clicked): Prevent signal race. * NEWS: Update. + * src/TarFile.py (extract_files): insert missing 'replace' call. 2005-06-21 Don Allingham * src/GenericFilter.py: optimize a few filters diff --git a/gramps2/src/TarFile.py b/gramps2/src/TarFile.py index 431c1339d..c890abb31 100644 --- a/gramps2/src/TarFile.py +++ b/gramps2/src/TarFile.py @@ -111,7 +111,7 @@ class ReadTarFile: if filename == None: return data self.f.read(24) # modes - l = self.f.read(12)(chr(0),' ') + l = self.f.read(12).replace(chr(0),' ') length = int(l,8) self.f.read(12) self.f.read(6)