Bug#892240: diffoscope: crashes comparing directories with python3-xattr installed

Doug Freed dwfreed at mtu.edu
Wed Mar 7 09:52:50 UTC 2018


python3-xattr has an xattr class that can be used like a dict (and
thus call .items() to behave like pyxattr's xattr.get_all()).  A
wrapper function like this would work:

def xattr_get_all(path):
    try:
        return xattr.get_all(path)
    except AttributeError:
        return xattr.xattr(path).items()

--
dwfreed



More information about the Reproducible-builds mailing list