Fix rbt info on Python 3.

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

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.

Summary ID
Fix rbt info on Python 3.
`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.
2851041025026e12b85cf253a7d15068498d36a7
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.x (b2ca78f)