[Piuparts-devel] Bug#586443: Bug#586443: Bug#586443: piuparts: python DeprecationWarning (sets / debian_bundle)

John Wright jsw at debian.org
Sun Jun 20 19:46:23 UTC 2010


Hi Holger,

On Sun, Jun 20, 2010 at 09:46:02AM +0200, Holger Levsen wrote:
> Hi John, 
> 
> On Sonntag, 20. Juni 2010, John Wright wrote:
> > Sorry; we (the python-debian team) probably should have given some time
> > where loading debian_bundle didn't raise a DeprecationWarning.  Anyway,
> > the attached patch should squelch both warnings.
> 
> Thanks you for that.
> 
> The "import sets" change is unrelated, I assume. Does that work with python 
> 2.5 as well?

Sorry, yes, it's unrelated to the python-debian debian_bundle
deprecation.  Python < 2.4 didn't have a built-in set type, hence the
import sets business (I wrote that chunk to be compatible with python2.3
at the time).  So yes, using set instead of sets.Set will work with
python2.5.

-- 
John Wright <jsw at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20100620/241edb12/attachment.pgp>


More information about the Piuparts-devel mailing list