Fix a UnicodeDecodeError processing markdown.

Review Request #7307 — Created May 16, 2015 and submitted

Information

Review Board
release-2.0.x
85f5342...

Reviewers

In some code paths, we end up passing a bytes object into the markdown library.
This isn't expected to work, and causes a UnicodeDecodeError noting that we
should only be passing in unicode objects. Because we have a number of
different code-paths doing different things, I've made it so the render_markdown
method can accept either bytes or unicode, and will decode if necessary.

Ran unit tests.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/reviews/markdown_utils.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/reviews/markdown_utils.py
    
    
  2. 
      
chipx86
  1. Ship It!
  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.0.x (354070b)
Loading...