• 
      

    Do some modernization in advance of binary file support for rbt patch.

    Review Request #14713 — Created Nov. 28, 2025 and submitted

    Information

    RBTools
    master

    Reviewers

    This change modernizes type annotations, syntax, and docs within the
    patch command implementation, along with the rbtools.diffs.patches and
    rbtools.diffs.patcher modules.

    Ran unit tests.

    Summary ID
    Do some modernization in advance of binary file support for rbt patch.
    This change modernizes type annotations, syntax, and docs within the patch command implementation, along with the `rbtools.diffs.patches` and `rbtools.diffs.patcher` modules. Testing Done: Ran unit tests.
    nxupvqrnzspstmtuwqkmqnwqrylwwwxl
    Description From Last Updated

    Can you update this to str instead of unicode.

    maubinmaubin

    review_request_id is None in this case. You should put options.args[0] here instead.

    maubinmaubin

    This is old but is this right? Nothing gets passed to the placeholder.

    maubinmaubin

    Let's stick to one keyword argument per line, keep it managable.

    chipx86chipx86

    This needs to be updated to OSError

    maubinmaubin
    chipx86
    1. 
        
    2. rbtools/diffs/patcher.py (Diff revision 1)
       
       
      Show all issues

      Let's stick to one keyword argument per line, keep it managable.

    3. 
        
    maubin
    1. 
        
    2. rbtools/commands/patch.py (Diff revision 1)
       
       
      Show all issues

      Can you update this to str instead of unicode.

    3. rbtools/commands/patch.py (Diff revision 1)
       
       
      Show all issues

      This is old but is this right? Nothing gets passed to the placeholder.

    4. rbtools/diffs/patches.py (Diff revision 1)
       
       
      Show all issues

      This needs to be updated to OSError

    5. 
        
    david
    maubin
    1. 
        
    2. rbtools/commands/patch.py (Diff revisions 1 - 2)
       
       
      Show all issues

      review_request_id is None in this case. You should put options.args[0] here instead.

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