logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

keyword.patch (673B)


  1. SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
  2. SPDX-License-Identifier: PSF-2.0
  3. frozenset() is a feature only added in Python 2.5, but we are
  4. building Python 2.5, so we must bypass this logic. (It is not
  5. critical, so we can just remove it).
  6. --- Python-2.5.6/Lib/keyword.py 2022-10-11 12:51:13.050744758 +1100
  7. +++ Python-2.5.6/Lib/keyword.py 2022-10-11 12:52:05.946372559 +1100
  8. @@ -10,7 +10,7 @@
  9. python Lib/keyword.py
  10. """
  11. -__all__ = ["iskeyword", "kwlist"]
  12. +__all__ = ["kwlist"]
  13. kwlist = [
  14. #--start keywords--
  15. @@ -48,8 +48,6 @@
  16. #--end keywords--
  17. ]
  18. -iskeyword = frozenset(kwlist).__contains__
  19. -
  20. def main():
  21. import sys, re