logo

live-bootstrap

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

refractor.patch (915B)


  1. SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
  2. SPDX-License-Identifier: PSF-2.0
  3. I'm not sure what was going on here when this was written, or how
  4. it ever worked! But this small simple fix works 0.0
  5. --- Python-3.8.16/Lib/sre_constants.py 2022-12-20 18:30:21.883561534 +1100
  6. +++ Python-3.8.16/Lib/sre_constants.py 2022-12-20 18:31:23.209190748 +1100
  7. @@ -56,6 +56,7 @@
  8. class _NamedIntConstant(int):
  9. def __new__(cls, value, name):
  10. self = super(_NamedIntConstant, cls).__new__(cls, value)
  11. + self.value = value
  12. self.name = name
  13. return self
  14. @@ -219,7 +220,7 @@
  15. def dump(f, d, prefix):
  16. items = sorted(d)
  17. for item in items:
  18. - f.write("#define %s_%s %d\n" % (prefix, item, item))
  19. + f.write("#define %s_%s %d\n" % (prefix, item.name, item.value))
  20. with open("sre_constants.h", "w") as f:
  21. f.write("""\
  22. /*