aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/contextlib2/py3/patches
diff options
context:
space:
mode:
authormaxim-yurchuk <maxim-yurchuk@yandex-team.com>2024-10-09 12:29:46 +0300
committermaxim-yurchuk <maxim-yurchuk@yandex-team.com>2024-10-09 13:14:22 +0300
commit9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch)
treea8fb3181d5947c0d78cf402aa56e686130179049 /contrib/python/contextlib2/py3/patches
parenta44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff)
downloadydb-9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80.tar.gz
publishFullContrib: true for ydb
<HIDDEN_URL> commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/python/contextlib2/py3/patches')
-rw-r--r--contrib/python/contextlib2/py3/patches/01-support-python-3.12.patch8
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 0000000000..dc0a0153d6
--- /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)