Allow Djblets to patch collections when running rbext.

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

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.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
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 Christian Hammond
reviewboard/cmdline/rbext.py
Loading...