From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 37ACC1389E2 for ; Mon, 22 Dec 2014 23:11:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9CE65E0986; Mon, 22 Dec 2014 23:11:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B41D4E0984 for ; Mon, 22 Dec 2014 23:11:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E33EE34066F for ; Mon, 22 Dec 2014 23:11:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EC8F3D283 for ; Mon, 22 Dec 2014 23:11:39 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1419093965.1f9c0314396136e3e4c8a47c344d7d18f497c644.dol-sen@gentoo> Subject: [gentoo-commits] proj/gentoo-keys:master commit in: gkeys/ X-VCS-Repository: proj/gentoo-keys X-VCS-Files: gkeys/base.py X-VCS-Directories: gkeys/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 1f9c0314396136e3e4c8a47c344d7d18f497c644 X-VCS-Branch: master Date: Mon, 22 Dec 2014 23:11:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 33f4ee85-4997-4cd3-bfb6-2fb596eafe20 X-Archives-Hash: e3799a7a6c8e341d9f2e932b75a5ebfb commit: 1f9c0314396136e3e4c8a47c344d7d18f497c644 Author: Brian Dolbec gentoo org> AuthorDate: Sat Dec 13 18:31:11 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Sat Dec 20 16:46:05 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=1f9c0314 gkeys.base.py: Fix a unicode handling error in print_results() --- gkeys/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gkeys/base.py b/gkeys/base.py index 0ec8a03..95142f9 100644 --- a/gkeys/base.py +++ b/gkeys/base.py @@ -238,7 +238,7 @@ class CliBase(object): if header: print(header) for msg in results: - if isinstance(msg, str): + if isinstance(msg, str) or isinstance(msg, unicode): print(' ', msg) else: try: