Make gen_xproto.py work with Python 3.
- Tuple parameter unpacking was removed in Python 3, so adjust type_order_priority() accordingly. - |cmp| as a parameter for list.sort() was removed in Python 3, use functools.cmp_to_key(). Bug: 941669 Change-Id: Icafb2024c77a335e5dd043be066f414a38f14b63 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2236404 Auto-Submit: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> Commit-Queue: Thomas Anderson <thomasanderson@chromium.org> Reviewed-by:Thomas Anderson <thomasanderson@chromium.org> Cr-Commit-Position: refs/heads/master@{#776606}
Showing
Please register or sign in to comment