aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/contextlib2/py3/patches/01-support-python-3.12.patch
blob: dc0a0153d617abe77133b309468a334fc31d7e8b (plain) (blame)
1
2
3
4
5
6
7
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)