commit | 9b4bb9fe13cf5cb8f42469abcc78b58b1789830e | [log] [tgz] |
---|---|---|
author | Dominic Lemire <dominic.lemire@broadcom.com> | Wed May 22 11:05:26 2024 -0700 |
committer | Dominic Lemire <dominic.lemire@broadcom.com> | Wed May 22 11:13:26 2024 -0700 |
tree | b5699ef76d4ce20074559addb1418dc52c8c2c99 | |
parent | 76fc81fc00bddda2a45014375da135924329530a [diff] |
Convert pagecache to python 3 First pass with '2to3', then fixups: - Call python3 explicitly - Remove redundant print((), ...) parentheses - Use len() to compare filename < 64 - Convert Queue.get() bytes to string - Handle ctrl-c without traceback Bug: 342168858 Test: sudo apt install python-is-python3 && ./pagecache.py Change-Id: Ie47ace7ed1ad620c77bb86955b6b60b0c57e047f