This is an archive of the discontinued LLVM Phabricator instance.

[opt-viewer] Python 3 support in opt-stats.py
ClosedPublic

Authored by modocache on Jun 23 2017, 11:53 AM.

Details

Summary

Minor changes that allow opt-stats.py to support both Python 2 and 3.

Event Timeline

modocache created this revision.Jun 23 2017, 11:53 AM
anemet edited edge metadata.Jun 23 2017, 12:47 PM

This may be way less efficient for Python 2. You may want to follow the guidance from here:

http://legacy.python.org/dev/peps/pep-0469/#migrating-to-the-common-subset-of-python-2-and-3

modocache planned changes to this revision.Jun 23 2017, 1:03 PM

Ah, good call, thanks!

modocache updated this revision to Diff 103844.Jun 24 2017, 9:41 AM

Use the recommended compatibility functions from PEP 469.

anemet accepted this revision.Jun 25 2017, 11:07 PM

LGTM, thanks!

This revision is now accepted and ready to land.Jun 25 2017, 11:07 PM
modocache closed this revision.Jun 26 2017, 9:51 AM

Thanks for the review!