Perform unicode migration for reviewboard/admin

Review Request #4958 — Created Nov. 15, 2013 and submitted

Information

Review Board
master

Reviewers

Perform unicode migration for reviewboard/admin

This change represents an audit of all of our string literals to make sure that
bytestrings are annotated with a leading 'b', and then adds
"from __future__ import unicode_literals" to the beginning of every non-empty
file. This also includes some changes to handle string/byte types when
communicating with memcached, some changes to use six.text_type for python 2/3
compatibility, and marking some additional strings for translation.

  • Ran unit tests
  • Smoke tested admin
Description From Last Updated

Here too.

chipx86chipx86

Probably no point in actually doing six.text_type() here, since the format strings will take care of it.

chipx86chipx86

Same here.

chipx86chipx86
chipx86
  1. 
      
  2. Show all issues

    Here too.

  3. reviewboard/admin/siteconfig.py (Diff revision 1)
     
     
     
     
     
     

    I remember the Amazon support being pretty finicky. Are we use that six.text_type will always satisfy its requirements?

    1. Reading through django-storages and boto code, I don't see any reason why the unicode type wouldn't work. I think this was an issue in the pre-boto implementation.

  4. reviewboard/admin/widgets.py (Diff revision 1)
     
     
     
     
     
    Show all issues

    Probably no point in actually doing six.text_type() here, since the format strings will take care of it.

  5. reviewboard/admin/widgets.py (Diff revision 1)
     
     
     
     
     
    Show all issues

    Same here.

  6. 
      
david
chipx86
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to master (618f825).