Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 257023 Details for
Bug 348618
app-emulation/xen-tools - xm list does not work with python-2.7 AttributeError: HTTPUnix instance has no attribute 'getresponse'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
app-emulation/xen/files/localpy27fixes.patch
localpy27fixes.patch (text/plain), 1.48 KB, created by
Dmitry S. Kulyabov
on 2010-12-13 13:29:58 UTC
(
hide
)
Description:
app-emulation/xen/files/localpy27fixes.patch
Filename:
MIME Type:
Creator:
Dmitry S. Kulyabov
Created:
2010-12-13 13:29:58 UTC
Size:
1.48 KB
patch
obsolete
>--- xen-4.0.1/tools/python/xen/util/xmlrpcclient.py.orig 2010-02-02 20:43:01.000000000 +0000 >+++ xen-4.0.1/tools/python/xen/util/xmlrpcclient.py 2010-08-18 21:36:05.000000000 +0100 >@@ -22,6 +22,7 @@ > import string > import xmlrpclib > from types import StringTypes >+from sys import hexversion > > > try: >@@ -54,7 +55,12 @@ > return xmlrpclib.Transport.request(self, host, '/RPC2', > request_body, verbose) > def make_connection(self, host): >- return HTTPUnix(self.__handler) >+ if hexversion < 0x02070000: >+ # python 2.6 or earlier >+ return HTTPUnix(self.__handler) >+ else: >+ # xmlrpclib.Transport changed in python 2.7 >+ return HTTPUnixConnection(self.__handler) > > > # We need our own transport for HTTPS, because xmlrpclib.SafeTransport is >--- xen-4.0.1/tools/python/xen/util/xmlrpclib2.py.orig 2010-02-02 20:43:01.000000000 +0000 >+++ xen-4.0.1/tools/python/xen/util/xmlrpclib2.py 2010-08-18 21:35:40.000000000 +0100 >@@ -58,6 +58,9 @@ > # some bugs in Keep-Alive handling and also enabled it by default > class XMLRPCRequestHandler(SimpleXMLRPCRequestHandler): > protocol_version = "HTTP/1.1" >+ # xend crashes in python 2.7 unless disable_nagle_algorithm = False >+ # it isn't used in earlier versions so it is harmless to set it generally >+ disable_nagle_algorithm = False > > def __init__(self, hosts_allowed, request, client_address, server): > self.hosts_allowed = hosts_allowed
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 348618
: 257023