Fix rbt info on Python 3.

Review Request #12520 — Created Aug. 9, 2022 and updated

chipx86
RBTools
release-3.x
rbtools

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.

Summary
Fix rbt info on Python 3.
Checks run (2 succeeded)
flake8 passed.
JSHint passed.
david
  1. Ship It!
  2. 
      
Loading...