avbtool and Python 3

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

avbtool and Python 3

Baran Jean-Marie
Hello,

The tool avbtool have a nice interface for integrating it into third-party scripts:

import avbtool

avb
= avbtool.Avb()
# Do stuff: avb.info_image(), avb.add_hashtree_footer(), ...

However it currently only targets Python 2 (as of android-9.0.0_r3), which is unfortunate for scripts written in Python 3, forcing them to rely on e.g. the subprocess module in order to be able to use avbtool. The amount of modifications required for having avbtool compatible with Python 3 is small and requires little efforts (it's mainly about adopting Python 3's print style).

Is there any plan regarding this?

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/d/optout.