有没有办法使使用 bzrlib 工具箱 Python 3 的 Python 2.7 脚本兼容?由于 Python 3 不支持 bzrlib

Is there a way to make a Python 2.7 script that utilizes the bzrlib toolbox Python 3 compatable? Since bzrlib is not supported in Python 3

我知道如何使 Python 2.7 脚本与 Python 3 兼容,但是当它使用导入的 bzrlib 工具箱模块时,我将如何使其兼容Python 不支持 3?

我正在导入:

from bzrlib.branch import Branch

Bazaar 项目有一个分支 API,它主要向后兼容并且与 Python 3 一起工作,称为 微风。参见 https://code.launchpad.net/brz and https://www.breezy-vcs.org/

它支持所有 Bazaar 文件格式和网络协议。

协议文档位于 https://www.breezy-vcs.org/developers/api/