Fix rbt info on Python 3.

Review Request #12520 — Created Aug. 9, 2022 and submitted — Latest diff uploaded

Information

RBTools
release-3.x

Reviewers

rbt info was depending on a backports module, which was only
installed on Python 2.7. This prevented the command from working at all
on Python 3.

This changes the usage to be a conditional import, using the modern
version if available and falling back on the backport.

Successfully ran rbt info on Python 3.

Commits

Files