1 22
import functools
2 22
import sys
3

4 22
import _common
5

6
# just making sure importing Trio doesn't fail if sys.excepthook doesn't have a
7
# .__name__ attribute
8

9 22
sys.excepthook = functools.partial(sys.excepthook)
10

11 22
assert not hasattr(sys.excepthook, "__name__")
12

13 22
import trio

Read our documentation on viewing source code .

Loading