# HG changeset patch # User Denis Laxalde # Date 1518689060 -3600 # Node ID 577e8d3896b48d694403824ded14d0d8069d482b # Parent e2953e0de494463bb7d7ee77866dac62c7159f76 [server] unicode → text_type in utils diff -r e2953e0de494 -r 577e8d3896b4 cubicweb/server/utils.py --- a/cubicweb/server/utils.py Thu Feb 15 11:02:48 2018 +0100 +++ b/cubicweb/server/utils.py Thu Feb 15 11:04:20 2018 +0100 @@ -26,7 +26,7 @@ from threading import Thread from getpass import getpass -from six import PY2 +from six import PY2, text_type from six.moves import input from passlib.utils import handlers as uh, to_hash_str @@ -106,7 +106,7 @@ while not user: user = input('login: ') if PY2: - user = unicode(user, sys.stdin.encoding) + user = text_type(user, sys.stdin.encoding) passwd = getpass('%s: ' % passwdmsg) if confirm: while True: