nodejs-16.12.0-jinja_collections_abc.patch 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. diff -urp node-v16.12.0.orig/deps/v8/third_party/jinja2/runtime.py node-v16.12.0/deps/v8/third_party/jinja2/runtime.py
  2. --- node-v16.12.0.orig/deps/v8/third_party/jinja2/runtime.py 2021-10-20 04:16:56.000000000 -0700
  3. +++ node-v16.12.0/deps/v8/third_party/jinja2/runtime.py 2021-10-22 22:34:19.026712739 -0700
  4. @@ -315,7 +315,7 @@ class Context(with_metaclass(ContextMeta
  5. # register the context as mapping if possible
  6. try:
  7. - from collections import Mapping
  8. + from collections.abc import Mapping
  9. Mapping.register(Context)
  10. except ImportError:
  11. pass
  12. diff -urp node-v16.12.0.orig/deps/v8/third_party/jinja2/sandbox.py node-v16.12.0/deps/v8/third_party/jinja2/sandbox.py
  13. --- node-v16.12.0.orig/deps/v8/third_party/jinja2/sandbox.py 2021-10-20 04:16:56.000000000 -0700
  14. +++ node-v16.12.0/deps/v8/third_party/jinja2/sandbox.py 2021-10-22 22:34:19.027712739 -0700
  15. @@ -14,7 +14,7 @@
  16. """
  17. import types
  18. import operator
  19. -from collections import Mapping
  20. +from collections.abc import Mapping
  21. from jinja2.environment import Environment
  22. from jinja2.exceptions import SecurityError
  23. from jinja2._compat import string_types, PY2
  24. @@ -79,7 +79,7 @@ except ImportError:
  25. pass
  26. #: register Python 2.6 abstract base classes
  27. -from collections import MutableSet, MutableMapping, MutableSequence
  28. +from collections.abc import MutableSet, MutableMapping, MutableSequence
  29. _mutable_set_types += (MutableSet,)
  30. _mutable_mapping_types += (MutableMapping,)
  31. _mutable_sequence_types += (MutableSequence,)
  32. Only in node-v16.12.0/deps/v8/third_party/jinja2: tests.py.rej
  33. diff -urp node-v16.12.0.orig/deps/v8/third_party/jinja2/utils.py node-v16.12.0/deps/v8/third_party/jinja2/utils.py
  34. --- node-v16.12.0.orig/deps/v8/third_party/jinja2/utils.py 2021-10-20 04:16:56.000000000 -0700
  35. +++ node-v16.12.0/deps/v8/third_party/jinja2/utils.py 2021-10-22 22:34:19.027712739 -0700
  36. @@ -482,7 +482,7 @@ class LRUCache(object):
  37. # register the LRU cache as mutable mapping if possible
  38. try:
  39. - from collections import MutableMapping
  40. + from collections.abc import MutableMapping
  41. MutableMapping.register(LRUCache)
  42. except ImportError:
  43. pass
  44. diff -urp node-v16.12.0.orig/tools/inspector_protocol/jinja2/runtime.py node-v16.12.0/tools/inspector_protocol/jinja2/runtime.py
  45. --- node-v16.12.0.orig/tools/inspector_protocol/jinja2/runtime.py 2021-10-20 04:16:57.000000000 -0700
  46. +++ node-v16.12.0/tools/inspector_protocol/jinja2/runtime.py 2021-10-22 22:34:19.027712739 -0700
  47. @@ -315,7 +315,7 @@ class Context(with_metaclass(ContextMeta
  48. # register the context as mapping if possible
  49. try:
  50. - from collections import Mapping
  51. + from collections.abc import Mapping
  52. Mapping.register(Context)
  53. except ImportError:
  54. pass
  55. diff -urp node-v16.12.0.orig/tools/inspector_protocol/jinja2/sandbox.py node-v16.12.0/tools/inspector_protocol/jinja2/sandbox.py
  56. --- node-v16.12.0.orig/tools/inspector_protocol/jinja2/sandbox.py 2021-10-20 04:16:57.000000000 -0700
  57. +++ node-v16.12.0/tools/inspector_protocol/jinja2/sandbox.py 2021-10-22 22:34:19.028712739 -0700
  58. @@ -14,7 +14,7 @@
  59. """
  60. import types
  61. import operator
  62. -from collections import Mapping
  63. +from collections.abc import Mapping
  64. from jinja2.environment import Environment
  65. from jinja2.exceptions import SecurityError
  66. from jinja2._compat import string_types, PY2
  67. @@ -79,7 +79,7 @@ except ImportError:
  68. pass
  69. #: register Python 2.6 abstract base classes
  70. -from collections import MutableSet, MutableMapping, MutableSequence
  71. +from collections.abc import MutableSet, MutableMapping, MutableSequence
  72. _mutable_set_types += (MutableSet,)
  73. _mutable_mapping_types += (MutableMapping,)
  74. _mutable_sequence_types += (MutableSequence,)
  75. Only in node-v16.12.0/tools/inspector_protocol/jinja2: tests.py.rej