Fix unicode errors when sending notification e-mails.

Review Request #7589 — Created Aug. 14, 2015 and submitted

Information

Review Board
release-2.0.x
485ff0a...

Reviewers

We already had one place that checked to make sure that we weren't trying to
format un-decoded bytes into a unicode string, but there were a couple other
places where we didn't. I've just copied and pasted the check into all the
relevant places.

Ran unit tests.

Description From Last Updated

Let's make a self._normalize_string function for this, since we shouldn't have to copy/paste, and are likely to just hit this …

chipx86chipx86

Should have the new "Args" and "Returns" docstrings.

chipx86chipx86

Blank line between these.

chipx86chipx86
reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/notifications/email.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        reviewboard/notifications/email.py
    
    
  2. 
      
chipx86
  1. 
      
  2. reviewboard/notifications/email.py (Diff revision 1)
     
     
     
     
    Show all issues

    Let's make a self._normalize_string function for this, since we shouldn't have to copy/paste, and are likely to just hit this again down the road as we expand our headers.

  3. 
      
david
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/notifications/email.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/notifications/email.py
    
    
  2. 
      
chipx86
  1. 
      
  2. reviewboard/notifications/email.py (Diff revision 2)
     
     
    Show all issues

    Should have the new "Args" and "Returns" docstrings.

  3. reviewboard/notifications/email.py (Diff revision 2)
     
     
     
    Show all issues

    Blank line between these.

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

Status: Closed (submitted)

Change Summary:

Pushed to release-2.0.x (027fd15)
Loading...