Python 3.x html output on stdout is mangled

Bug #1613169 reported by Stanislaw Pitucha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bandit
Fix Released
Medium
Stanislaw Pitucha

Bug Description

Python 3.x used with html output on the terminal will print out serialised bytes variable rather than the expected output. A better way of detecting text/binary output is needed.

Changed in bandit:
assignee: nobody → Stanislaw Pitucha (stanislaw-pitucha)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to bandit (master)

Fix proposed to branch: master
Review: https://review.openstack.org/355305

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to bandit (master)

Reviewed: https://review.openstack.org/355305
Committed: https://git.openstack.org/cgit/openstack/bandit/commit/?id=01211464e3d95cc17daab958ac08686dc9130a0d
Submitter: Jenkins
Branch: master

commit 01211464e3d95cc17daab958ac08686dc9130a0d
Author: Stanisław Pitucha <email address hidden>
Date: Mon Aug 15 15:35:23 2016 +1000

    Detect binary output file (txt/html)

    Printing out bytes values to text destination results in mangled
    output. Add better detection.

    Closes-bug: 1613169
    Co-Authored-By: Ian Cordasco <email address hidden>
    Change-Id: I6e08cea789e13b71f6e70fbe991026b75be80199

Changed in bandit:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.