From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QrLtL-0006vr-6r for garchives@archives.gentoo.org; Thu, 11 Aug 2011 03:25:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC5CE21C0AD; Thu, 11 Aug 2011 03:24:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 7A46121C0AD for ; Thu, 11 Aug 2011 03:24:39 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D37C81B4063 for ; Thu, 11 Aug 2011 03:24:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id CB3A58004F for ; Thu, 11 Aug 2011 03:24:37 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: Subject: [gentoo-commits] proj/layman:master commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/db.py X-VCS-Directories: layman/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: c939e9b3cfd433dbcc589c5f335d18d16018a1aa Date: Thu, 11 Aug 2011 03:24:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 01f16a115cbacc84e18f35480dff7542 commit: c939e9b3cfd433dbcc589c5f335d18d16018a1aa Author: dol-sen gmail com> AuthorDate: Thu Aug 11 02:37:26 2011 +0000 Commit: Brian Dolbec gmail com> CommitDate: Thu Aug 11 02:37:26 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3Dc939e9b3 HTTPError in 2.5 does not have getcode(). use error.code --- layman/db.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/layman/db.py b/layman/db.py index d9a558e..bd58cd6 100644 --- a/layman/db.py +++ b/layman/db.py @@ -329,7 +329,7 @@ class RemoteDB(DbBase): else: timestamp =3D None except urllib2.HTTPError, e: - if e.getcode() =3D=3D 304: + if e.code =3D=3D 304: self.output.info('Remote list already up to date: %s= ' % url, 4) self.output.info('Last-modified: %s' % timestamp, 4)