[projects/pld-ftp-admin] TypeError: got <type 'str'> ('Enter pass phrase:') as pattern, must be one of: <type 'unicode'>, pex
baggins
baggins at pld-linux.org
Sun Feb 21 23:11:25 CET 2021
commit 2086ad423ac5b636bf1dee52a11b64941d23be7e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Feb 21 23:10:43 2021 +0100
TypeError: got <type 'str'> ('Enter pass phrase:') as pattern, must be one of: <type 'unicode'>, pexpect.EOF, pexpect.TIMEOUT
modules/sign.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/modules/sign.py b/modules/sign.py
index ef9e814..e5e1e3d 100644
--- a/modules/sign.py
+++ b/modules/sign.py
@@ -48,7 +48,7 @@ def signpkgs(files, password):
args = ['--resign', '--define', '_signature gpg', '--define', '_gpg_name ' + sign_key] + files
child = pexpect.spawn('/bin/rpm', args, encoding='utf-8')
child.logfile_read = sys.stderr
- child.expect('Enter pass phrase:', timeout=30)
+ child.expect(u'Enter pass phrase:', timeout=30)
child.sendline(password)
child.expect(pexpect.EOF, timeout=None)
child.close()
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/2086ad423ac5b636bf1dee52a11b64941d23be7e
More information about the pld-cvs-commit
mailing list