Fix rbt info on Python 3.

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

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.
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.x (b2ca78f)
Loading...