- """Rethrow either the provided ex, or any exception raised by the with
- statement body, after making ex the __context__ of the newer
- exception (assuming there's no existing __context__). Ensure
- the exceptions have __tracebacks__. (Supports Python 2
- compatibility.)
+ """If rethrow is true, rethrow ex (if any), unless the body throws.
+
+ If the body does throw, make any provided ex the __context__
+ of the newer exception (assuming there's no existing
+ __context__). Ensure the exceptions have __tracebacks__.
+ (Supports Python 2 compatibility.)