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 D2F8213877A for ; Wed, 20 Aug 2014 03:55:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 28F90E083A; Wed, 20 Aug 2014 03:55:27 +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 7EA03E087F for ; Wed, 20 Aug 2014 03:55:25 +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 0815F3401E7 for ; Wed, 20 Aug 2014 03:55:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 59D1C39BA for ; Wed, 20 Aug 2014 03:55:19 +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: <1408233961.ee03a6a0cb087f9c4626d4d0b16cd915788dab07.dol-sen@gentoo> Subject: [gentoo-commits] proj/gentoo-keys:master commit in: gkeys/ X-VCS-Repository: proj/gentoo-keys X-VCS-Files: gkeys/cli.py X-VCS-Directories: gkeys/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: ee03a6a0cb087f9c4626d4d0b16cd915788dab07 X-VCS-Branch: master Date: Wed, 20 Aug 2014 03:55:19 +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: 39722428-0e30-467c-a689-c2368bb580f2 X-Archives-Hash: 9d82516c78497adaff3f435893be4490 commit: ee03a6a0cb087f9c4626d4d0b16cd915788dab07 Author: Pavlos Ratis gentoo org> AuthorDate: Sat Aug 16 23:39:16 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Sun Aug 17 00:06:01 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=ee03a6a0 expand cli output cases --- gkeys/cli.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gkeys/cli.py b/gkeys/cli.py index dffda5c..ed7ce5e 100644 --- a/gkeys/cli.py +++ b/gkeys/cli.py @@ -158,7 +158,11 @@ class Main(object): if isinstance(msg, str): print(msg) else: - print("\n".join([x.pretty_print for x in msg])) + try: + print("\n".join([x.pretty_print for x in msg])) + except AttributeError: + for x in msg: + print(x) print()