diff options
Diffstat (limited to 'contrib/python/contextlib2/py3')
| -rw-r--r-- | contrib/python/contextlib2/py3/patches/01-support-python-3.12.patch | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/python/contextlib2/py3/patches/01-support-python-3.12.patch b/contrib/python/contextlib2/py3/patches/01-support-python-3.12.patch new file mode 100644 index 00000000000..dc0a0153d61 --- /dev/null +++ b/contrib/python/contextlib2/py3/patches/01-support-python-3.12.patch @@ -0,0 +1,8 @@ +--- contrib/python/contextlib2/py3/contextlib2/__init__.py (index) ++++ contrib/python/contextlib2/py3/contextlib2/__init__.py (working tree) +@@ -179,0 +180,2 @@ class _GeneratorContextManager(_GeneratorContextManagerBase, ++ if traceback is not None: ++ value = value.with_traceback(traceback) +@@ -181 +183 @@ class _GeneratorContextManager(_GeneratorContextManagerBase, +- self.gen.throw(type, value, traceback) ++ self.gen.throw(value) |
