Proposed commit message:
Update to 6.0: - Fix optimize length being ignored in QRCode.add_data. - Better calculation of the best mask pattern and related optimizations. Reviewed by: ? (mentor) Approved by: ? (mentor) Differential Revision: ?
What mat said. Always use PY_FLAVOR for python dependencies.
Although mat did just update the original py-qrcode port amongst many others in r472884
to enforce the rule about always using PY_FLAVOR only about 50 minutes before you posted this review.
I guess you hadn't noticed that update while working on this port?
Anyhow, given the addition of the PY_FLAVOR fix, this looks fine.
I tested my change in a ports tree that had not been updated in a few hours then copied to the ports tree I use for committer work; I lost the race with r472884. I'll try to be more careful moving forward.