Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 901788 Details for
Bug 1104197
Cant query bugzilla with python3
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch that solves the issue by making a string out of request_body for POST
0001-Convert-request_body-to-string-for-Python-3.patch (text/plain), 803 bytes, created by
Josef Stribny
on 2014-06-03 13:28:31 UTC
(
hide
)
Description:
Patch that solves the issue by making a string out of request_body for POST
Filename:
MIME Type:
Creator:
Josef Stribny
Created:
2014-06-03 13:28:31 UTC
Size:
803 bytes
patch
obsolete
>From f905d41c997030cabb0b2b363fed6796071e1383 Mon Sep 17 00:00:00 2001 >From: Josef Stribny <jstribny@redhat.com> >Date: Tue, 3 Jun 2014 15:27:08 +0200 >Subject: [PATCH] Convert request_body to string for Python 3 > >--- > bugzilla/base.py | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/bugzilla/base.py b/bugzilla/base.py >index 2c454ac..42cdd94 100644 >--- a/bugzilla/base.py >+++ b/bugzilla/base.py >@@ -252,6 +252,9 @@ class RequestsTransport(Transport): > > # xmlrpclib fails to escape \r > request_body = request_body.replace(b'\r', b'
') >+ # Convert to string for Python 3 otherwise we get >+ # Content-Type error later for the POST request >+ request_body = request_body.decode('utf-8') > > return self._request_helper(url, request_body) > >-- >1.8.3.1 >
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 1104197
: 901788