Merge lp:~bzr/bzr/475585-lp-proxy-py24-compat into lp:bzr

Proposed by John A Meinel
Status: Merged
Merged at revision: not available
Proposed branch: lp:~bzr/bzr/475585-lp-proxy-py24-compat
Merge into: lp:bzr
Diff against target: 43 lines (+13/-2)
2 files modified
NEWS (+7/-0)
bzrlib/plugins/launchpad/lp_registration.py (+6/-2)
To merge this branch: bzr merge lp:~bzr/bzr/475585-lp-proxy-py24-compat
Reviewer Review Type Date Requested Status
bzr-core Pending
Review via email: mp+14492@code.launchpad.net
To post a comment you must log in.
Revision history for this message
John A Meinel (jameinel) wrote :

This is Vincent's fix for XMLTransport not being compatible with python2.4 with a couple of small updates. The main one is to just move the NEWS entry to the right location.

I still don't have a good answer for Daggy Fixes + NEWS entries. Because you really need NEWS to be part of the statement where the patch *lands* and not where it was *based* on...

Anyway, since Vincent was happy with that fix, and *I'm* happy with the small comment tweaks here, I'm going to land this.

Now we just need to figure out what to do about 2.1.0b3. I *definitely* want to release it ahead of schedule, since this is a serious regression.

But do we just release it straight from an updated bzr.dev, or do we just apply this patch onto 2.1.0b2 and release that immediately.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'NEWS'
2--- NEWS 2009-11-04 22:29:40 +0000
3+++ NEWS 2009-11-05 20:15:23 +0000
4@@ -29,6 +29,7 @@
5 allow those because XML store silently translate it anyway. (The parser
6 auto-translates \r\n => \n in ways that are hard for us to catch.)
7
8+<<<<<<< TREE
9 * On Windows, do glob expansion at the command-line level (as is usually
10 done in bash, etc.) This means that *all* commands get glob expansion
11 (bzr status, bzr add, bzr mv, etc). It uses a custom command line
12@@ -38,6 +39,12 @@
13 (John Arbash Meinel, #425510, #426410, #194450)
14
15
16+=======
17+* The fix for bug #186920 accidentally broke compatibility with python
18+ 2.4. (Vincent Ladeuil, #475585)
19+
20+
21+>>>>>>> MERGE-SOURCE
22 Improvements
23 ************
24
25
26=== modified file 'bzrlib/plugins/launchpad/lp_registration.py'
27--- bzrlib/plugins/launchpad/lp_registration.py 2009-10-30 21:02:37 +0000
28+++ bzrlib/plugins/launchpad/lp_registration.py 2009-11-05 20:15:23 +0000
29@@ -56,8 +56,12 @@
30
31 class XMLRPCTransport(xmlrpclib.Transport):
32
33- def __init__(self, scheme, use_datetime=0):
34- xmlrpclib.Transport.__init__(self, use_datetime=use_datetime)
35+ def __init__(self, scheme):
36+ # In python2.4 xmlrpclib.Transport is a old-style class, and does not
37+ # define __init__, so we check first
38+ init = getattr(xmlrpclib.Transport, '__init__', None)
39+ if init is not None:
40+ init(self)
41 self._scheme = scheme
42 self._opener = _urllib2_wrappers.Opener()
43 self.verbose = 0