From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (unknown [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C523F1381FA for ; Wed, 14 May 2014 03:21:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2E9D5E0A6E; Wed, 14 May 2014 03:21:47 +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 69B72E0A6E for ; Wed, 14 May 2014 03:21:46 +0000 (UTC) Received: from spoonbill.gentoo.org (unknown [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 87CCB33FB9F for ; Wed, 14 May 2014 03:21:45 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 21EF6180A9 for ; Wed, 14 May 2014 03:21:44 +0000 (UTC) From: "Devan Franchini" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Devan Franchini" Message-ID: <1400037673.90cd00ecd4f314fc46e2379c569b31260f1d0e5e.twitch153@gentoo> Subject: [gentoo-commits] proj/layman:gsoc2014 commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/dbbase.py X-VCS-Directories: layman/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: 90cd00ecd4f314fc46e2379c569b31260f1d0e5e X-VCS-Branch: gsoc2014 Date: Wed, 14 May 2014 03:21:44 +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: acbfb1f4-c045-4d95-b7ef-87b57d2f80d4 X-Archives-Hash: c4a8d3898554bfb36c336c0889970ec5 commit: 90cd00ecd4f314fc46e2379c569b31260f1d0e5e Author: Devan Franchini gentoo org> AuthorDate: Wed May 14 03:21:13 2014 +0000 Commit: Devan Franchini gentoo org> CommitDate: Wed May 14 03:21:13 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=90cd00ec dbbase.py: Adds py2/py3 compatibility to exception handling. --- layman/dbbase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layman/dbbase.py b/layman/dbbase.py index 8d57a9f..475ce44 100644 --- a/layman/dbbase.py +++ b/layman/dbbase.py @@ -156,7 +156,7 @@ class DbBase(object): ''' try: document = ET.fromstring(text) - except xml.parsers.expat.ExpatError, error: + except xml.parsers.expat.ExpatError as error: raise BrokenOverlayCatalog(origin, error, self._broken_catalog_hint()) overlays = document.findall('overlay') + \