aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2016-11-08 15:37:27 -0500
committerMike Gilbert <floppym@gentoo.org>2016-11-08 15:39:23 -0500
commit6557b1512ebfda508345e032e09ed85789c16c98 (patch)
tree9232c7f97b5a4f924a5e838992ae2dfd604d5398
parenttravis: note misbehavior by coverity addon when throttled (diff)
downloadpax-utils-6557b1512ebfda508345e032e09ed85789c16c98.tar.gz
pax-utils-6557b1512ebfda508345e032e09ed85789c16c98.tar.bz2
pax-utils-6557b1512ebfda508345e032e09ed85789c16c98.zip
lddtree.py: work around pyelftools API change
Section names now get returned as strings rather than bytes. See 108eaea9 upstream. Bug: https://bugs.gentoo.org/599082
-rwxr-xr-xlddtree.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lddtree.py b/lddtree.py
index 3971a9a..8480248 100755
--- a/lddtree.py
+++ b/lddtree.py
@@ -72,6 +72,8 @@ def dbg(debug, *args, **kwargs):
def bstr(buf):
"""Decode the byte string into a string"""
+ if isinstance(buf, str):
+ return buf
return buf.decode('utf-8')