From 3b5bd37fe55ae62a4a738895f695136c18472a46 Mon Sep 17 00:00:00 2001 From: Maeva Pourpoint <maeva@passcal.nmt.edu> Date: Fri, 2 Oct 2020 18:12:36 -0600 Subject: [PATCH] Fix "unpack requires a buffer of 1 bytes" bug --- mseedpeek/libtrace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mseedpeek/libtrace.py b/mseedpeek/libtrace.py index dd91a84..e8a3f41 100755 --- a/mseedpeek/libtrace.py +++ b/mseedpeek/libtrace.py @@ -1418,7 +1418,7 @@ class Mseed(futils): tmpchar = "" while tmpchar != "~": tupchar = self.sunpack(fmtstr, self.infileread(1)) - tmpchar = str(tupchar[0]) + tmpchar = tupchar[0].decode() if tmpchar != "~": char = char + tmpchar length_data_string += 1 -- GitLab