pyodide/packages/attrs/patches/use-dummy-threading.patch

17 lines
417 B
Diff
Raw Normal View History

2018-08-21 14:50:25 +00:00
diff --git a/src/attr/_make.py b/src/attr/_make.py
index fc44611..f60016e 100644
--- a/src/attr/_make.py
+++ b/src/attr/_make.py
@@ -3,7 +3,10 @@ from __future__ import absolute_import, division, print_function
import hashlib
import linecache
import sys
-import threading
+try:
+ import threading
+except ImportError:
+ import dummy_threading as threading
import warnings
from operator import itemgetter