• 
      

    Fix quote types throughout Review Board.

    Review Request #14608 — Created Sept. 11, 2025 and submitted

    Information

    Review Board
    master

    Reviewers

    This change fixes up all the places where we have incorrect quote types
    in the entire codebase.

    Ran unit tests.

    Summary ID
    Fix quote types throughout Review Board.
    This change fixes up all the places where we have incorrect quote types in the entire codebase. Testing Done: Ran unit tests.
    qrlomospuluzrvuusyxwqnmqznpusrot
    Description From Last Updated

    expected 2 blank lines after class or function definition, found 1 Column: 1 Error code: E305

    reviewbotreviewbot

    The mixing of string types is pretty error-prone. I think for a given multi-line string, we should only use one …

    chipx86chipx86

    While here, we should prefix with r.

    chipx86chipx86

    Same note here.

    chipx86chipx86

    Same note here.

    chipx86chipx86

    Same note here.

    chipx86chipx86

    Same note here.

    chipx86chipx86

    Same note here.

    chipx86chipx86

    Same note here and the other strings below.

    chipx86chipx86

    Same note here and the other strings below.

    chipx86chipx86

    Same note here.

    chipx86chipx86

    Same note here.

    chipx86chipx86

    Let's revert the backported haystack backends. It's not our code, they're forks of backends in the tree with fixes. We …

    chipx86chipx86

    Same note about consistent quotes within one string. Here and below.

    chipx86chipx86

    Seems like this one changed by accident. We should change it back to what you had before, outer 's and …

    maubinmaubin
    Checks run (1 failed, 1 succeeded)
    flake8 failed.
    JSHint passed.

    flake8

    david
    david
    chipx86
    1. Overall looks good, and I'm surprised we had so many inconsistent quotes!

      I have two main things here, and I point out the important occurrences.

      1. Mixing quote types within one wrapped string makes editing hard as escaped content wraps. We should be consistent within a string, even if we have to escape.
      2. We have third-party forks in here that should be left upstream as much as possible. We should limit this work to our own code.
    2. reviewboard/admin/forms/email_settings.py (Diff revision 3)
       
       
       
       
       
       
      Show all issues

      The mixing of string types is pretty error-prone. I think for a given multi-line string, we should only use one type. Otherwise editing becomes more of a chore as we re-wrap strings and have to re-escape/re-quote.

    3. reviewboard/admin/siteconfig.py (Diff revision 3)
       
       
      Show all issues

      While here, we should prefix with r.

    4. reviewboard/cmdline/rbsite.py (Diff revision 3)
       
       
       
      Show all issues

      Same note here.

    5. reviewboard/cmdline/rbsite.py (Diff revision 3)
       
       
       
       
       
      Show all issues

      Same note here.

    6. reviewboard/cmdline/rbsite.py (Diff revision 3)
       
       
       
       
       
      Show all issues

      Same note here.

    7. reviewboard/cmdline/tests/test_rbsite.py (Diff revision 3)
       
       
       
       
      Show all issues

      Same note here.

    8. reviewboard/datagrids/columns.py (Diff revision 3)
       
       
       
       
       
       
       
       
       
      Show all issues

      Same note here.

      1. These aren't wrapped strings, they're separate.

    9. reviewboard/diffviewer/tests/test_diffutils.py (Diff revision 3)
       
       
       
       
       
      Show all issues

      Same note here and the other strings below.

    10. reviewboard/diffviewer/tests/test_diffx_parser.py (Diff revision 3)
       
       
       
       
       
       
      Show all issues

      Same note here and the other strings below.

    11. Show all issues

      Same note here.

    12. Show all issues

      Same note here.

    13. Show all issues

      Let's revert the backported haystack backends. It's not our code, they're forks of backends in the tree with fixes. We should keep them as similar as possible so the backported changes don't get lost in a sea of other changes.

    14. reviewboard/webapi/resources/review_request.py (Diff revision 3)
       
       
       
       
      Show all issues

      Same note about consistent quotes within one string. Here and below.

    15. 
        
    david
    maubin
    1. 
        
    2. reviewboard/wsgi.py (Diff revision 4)
       
       
       
      Show all issues

      Seems like this one changed by accident. We should change it back to what you had before, outer 's and escape server\'s.

    3. 
        
    david
    maubin
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (54b32f3)