From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8F4EA1382C5 for ; Sat, 28 Apr 2018 23:08:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DB0C7E0823; Sat, 28 Apr 2018 23:08:30 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B6EA5E0823 for ; Sat, 28 Apr 2018 23:08:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5FD23335C9F for ; Sat, 28 Apr 2018 23:08:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3A45D29F for ; Sat, 28 Apr 2018 23:08:26 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1524956725.97887768e3f5e8bc1b520b119fde97fed16cfe7d.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/exception.py X-VCS-Directories: pym/portage/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 97887768e3f5e8bc1b520b119fde97fed16cfe7d X-VCS-Branch: master Date: Sat, 28 Apr 2018 23:08:26 +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: c5e19821-a9dc-498b-8f91-53e1e0009bdf X-Archives-Hash: b2d684c7e269e206533d6d3ed8a8c6fc commit: 97887768e3f5e8bc1b520b119fde97fed16cfe7d Author: Zac Medico gentoo org> AuthorDate: Sat Apr 28 22:59:21 2018 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Apr 28 23:05:25 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=97887768 PortageKeyError: fix __unicode__ AttributeError under python2.7 File "pym/portage/exception.py", line 32, in __unicode__ if isinstance(self.value, unicode): AttributeError: 'PortageKeyError' object has no attribute 'value' pym/portage/exception.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/portage/exception.py b/pym/portage/exception.py index 263cdf087..aed8beeb9 100644 --- a/pym/portage/exception.py +++ b/pym/portage/exception.py @@ -44,6 +44,9 @@ class PortageException(Exception): class PortageKeyError(KeyError, PortageException): __doc__ = KeyError.__doc__ + def __init__(self, value): + KeyError.__init__(self, value) + PortageException.__init__(self, value) class CorruptionError(PortageException): """Corruption indication"""