Explicitly import exceptions for backward compatibility with Python 2.5

This commit is contained in:
Luca Falavigna 2009-10-19 20:51:08 +02:00
parent 7e41f58ea6
commit 5bdec5b5b2
3 changed files with 9 additions and 4 deletions

7
debian/changelog vendored
View File

@ -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 <rainct@ubuntu.com> 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 <dktrkranz@debian.org> Mon, 19 Oct 2009 20:46:33 +0200
ubuntu-dev-tools (0.81) karmic; urgency=low

4
debian/control vendored
View File

@ -4,9 +4,9 @@ Priority: optional
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
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

View File

@ -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):