Fix rbt info on Python 3.
Review Request #12520 — Created Aug. 9, 2022 and submitted — Latest diff uploaded
rbt info
was depending on abackports
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.