This bug was fixed in the package python-debian - 0.1.12ubuntu2
---
python-debian (0.1.12ubuntu2) jaunty; urgency=low
* debian_bundle/deb822.py: _CaseInsensitiveString(): use __new__ instead of
__init__ to avoid a warning with Python 2.6; LP: #339466.
-- Loic Minier
acceptable from the release team's POV; appears low-risk enough, and
sufficiently high impact, to accept post-RC. Please upload.
** Changed in: python-debian (Ubuntu)
Status: New = Triaged
--
cron.weekly script produces a warning since the Python 2.6 transition
I re-tested the diff with bzr import-dsc which was also affected
** Changed in: python-debian (Ubuntu)
Status: Triaged = Fix Committed
--
cron.weekly script produces a warning since the Python 2.6 transition
https://bugs.launchpad.net/bugs/339466
You received this bug notification
** Changed in: python-debian (Ubuntu)
Importance: Undecided = Medium
** Changed in: python-debian (Ubuntu)
Assignee: (unassigned) = Loïc Minier (lool)
--
cron.weekly script produces a warning since the Python 2.6 transition
https://bugs.launchpad.net/bugs/339466
You received this bug
I agree that the patch is sane.
An alternative way to do it would be to simply remove the
str.__init__(self, str_) line. That would be a slightly more minimal
change, but your complete conversion to use __new__ is probably more
technically correct, though both should accomplish exactly the same
** Changed in: python-debian (Ubuntu)
Sourcepackagename: apt-xapian-index = python-debian
--
cron.weekly script produces a warning since the Python 2.6 transition
https://bugs.launchpad.net/bugs/339466
You received this bug notification because you are a member of Ubuntu
Bugs, which is
NB: I followed advice from
http://www.python.org/download/releases/2.2/descrintro/#__new__
--
cron.weekly script produces a warning since the Python 2.6 transition
https://bugs.launchpad.net/bugs/339466
You received this bug notification because you are a member of Ubuntu
Bugs, which is
Tested with:
$PYTHON -c import debian_bundle.deb822; print
debian_bundle.deb822._strI('fAb') == 'fab'
works with 2.5 and 2.6.
I'd like someone to comment on the sanity of the approach.
** Attachment added: Proposed fix is to use __new__ instead of __init__ to
extend str
** Attachment added: Dependencies.txt
http://launchpadlibrarian.net/23600838/Dependencies.txt
--
cron.weekly script produces a warning since the Python 2.6 transition
https://bugs.launchpad.net/bugs/339466
You received this bug notification because you are a member of Ubuntu
Bugs, which is