From 5bdec5b5b269dbc2f24cc06066a97e41fbb01756 Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Mon, 19 Oct 2009 20:51:08 +0200 Subject: [PATCH] Explicitly import exceptions for backward compatibility with Python 2.5 --- debian/changelog | 7 ++++++- debian/control | 4 ++-- ubuntutools/requestsync/lp.py | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 5125f03..a5fca64 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,7 +11,12 @@ ubuntu-dev-tools (0.82) UNRELEASED; urgency=low * debian/control: Improve description of pbuilder-dist and mention cowbuilder-dist. - -- Siegfried-Angel Gevatter Pujals Mon, 12 Oct 2009 13:35:32 +0200 + [ Luca Falavigna ] + * ubuntutools/requestsync/lp.py: explicitly import exceptions for + backward compatibility with Python 2.5. + * debian/control: re-enable support for python2.5. + + -- Luca Falavigna Mon, 19 Oct 2009 20:46:33 +0200 ubuntu-dev-tools (0.81) karmic; urgency=low diff --git a/debian/control b/debian/control index 0e6409b..92ca489 100644 --- a/debian/control +++ b/debian/control @@ -4,9 +4,9 @@ Priority: optional Maintainer: Ubuntu Developers Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-dev/ubuntu-dev-tools/trunk Vcs-Browser: http://codebrowse.launchpad.net/~ubuntu-dev/ubuntu-dev-tools/trunk/changes -Build-Depends: cdbs (>= 0.4.49), debhelper (>= 6), python-all-dev (>= 2.6) +Build-Depends: cdbs (>= 0.4.49), debhelper (>= 6), python (>= 2.5) Build-Depends-Indep: python-support (>= 0.5.3) -XS-Python-Version: >= 2.6 +XS-Python-Version: >= 2.5 Homepage: https://launchpad.net/ubuntu-dev-tools/ Standards-Version: 3.8.3 diff --git a/ubuntutools/requestsync/lp.py b/ubuntutools/requestsync/lp.py index 7e8f3b3..44f7d87 100644 --- a/ubuntutools/requestsync/lp.py +++ b/ubuntutools/requestsync/lp.py @@ -22,7 +22,7 @@ from .common import raw_input_exit_on_ctrlc from ..lp.lpapicache import Launchpad, Distribution, PersonTeam, DistributionSourcePackage -from ..lp.udtexceptions import * +from ..lp.udtexceptions import PackageNotFoundException, SeriesNotFoundException, PocketDoesNotExistException, ArchiveNotFoundException from ..lp.libsupport import translate_api_web def getDebianSrcPkg(name, release):