• 
      

    Allow Djblets to patch collections when running rbext.

    Review Request #12449 — Created July 10, 2022 and submitted

    Information

    Review Board
    release-4.0.x

    Reviewers

    Most of our command line tools were updated to allow Djblets to patch
    the collections module on Python 3.10, but rbext was not. This meant
    that if you're using Python 3.10, you're unable to invoke rbext at all
    on Python 3.10. Whether this has been hit in the wild is unknown, but
    it's blocking a new CI pipeline.

    We now import djblets early in the module, giving Djblets the
    opportunity to apply the patch.

    Successfully ran rbext using Python 3.10.

    Summary ID
    Allow Djblets to patch collections when running rbext.
    Most of our command line tools were updated to allow Djblets to patch the `collections` module on Python 3.10, but `rbext` was not. This meant that if you're using Python 3.10, you're unable to invoke `rbext` at all on Python 3.10. Whether this has been hit in the wild is unknown, but it's blocking a new CI pipeline. We now `import djblets` early in the module, giving Djblets the opportunity to apply the patch.
    816ac529c5134625977f2c0c6e5cc32a007d1cdd
    Description From Last Updated

    'djblets' imported but unused Column: 1 Error code: F401

    reviewbotreviewbot

    module level import not at top of file Column: 1 Error code: E402

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

    flake8

    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-4.0.x (5f29736)