summaryrefslogtreecommitdiff
path: root/dev-python/trio/files/trio-0.20.0-py311.patch
blob: f7d447825a16dcc618dc5e531374f1389c3cf39f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/trio/_core/_multierror.py b/trio/_core/_multierror.py
index 6dfdaa7a5..de0d56d46 100644
--- a/trio/_core/_multierror.py
+++ b/trio/_core/_multierror.py
@@ -383,11 +383,10 @@ def traceback_exception_init(
     capture_locals=False,
     compact=False,
     _seen=None,
+    **kwargs,
 ):
     if sys.version_info >= (3, 10):
-        kwargs = {"compact": compact}
-    else:
-        kwargs = {}
+        kwargs["compact"] = compact
 
     # Capture the original exception and its cause and context as TracebackExceptions
     traceback_exception_original_init(
@@ -421,6 +420,7 @@ def traceback_exception_init(
                         # copy the set of _seen exceptions so that duplicates
                         # shared between sub-exceptions are not omitted
                         _seen=None if seen_was_none else set(_seen),
+                        **kwargs,
                     )
                 )
         self.embedded = embedded