# HG changeset patch # User Franz Glasner # Date 1738932194 -3600 # Node ID c7dc57c44e8beb98a0de7b583bd2d00e2c1a2258 # Parent 5f4c81313be78e4a448c90c3e96d2079c02182f6 FIX: For Python3: decode from ASCII before printing them: this removes the binary b'xxx' representation there diff -r 5f4c81313be7 -r c7dc57c44e8b cutils/genpwd.py --- a/cutils/genpwd.py Fri Feb 07 13:42:03 2025 +0100 +++ b/cutils/genpwd.py Fri Feb 07 13:43:14 2025 +0100 @@ -77,6 +77,8 @@ raise NotImplementedError("type not yet implemented: %s" % opts.repertoire) assert len(pwd) == opts.req_length + if not PY2: + pwd = pwd.decode("ascii") print(pwd)