01-support-python-3.12.patch 490 B

12345678
  1. --- contrib/python/contextlib2/py3/contextlib2/__init__.py (index)
  2. +++ contrib/python/contextlib2/py3/contextlib2/__init__.py (working tree)
  3. @@ -179,0 +180,2 @@ class _GeneratorContextManager(_GeneratorContextManagerBase,
  4. + if traceback is not None:
  5. + value = value.with_traceback(traceback)
  6. @@ -181 +183 @@ class _GeneratorContextManager(_GeneratorContextManagerBase,
  7. - self.gen.throw(type, value, traceback)
  8. + self.gen.throw(value)