changeset 234:c7dc57c44e8b

FIX: For Python3: decode from ASCII before printing them: this removes the binary b'xxx' representation there
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 07 Feb 2025 13:43:14 +0100
parents 5f4c81313be7
children 11819361ea39
files cutils/genpwd.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)