pyodide/packages/pyparsing/patches/dummy_threading.patch

16 lines
513 B
Diff
Raw Normal View History

diff -u pyparsing-2.2.0.bak/pyparsing.py pyparsing-2.2.0/pyparsing.py
--- pyparsing-2.2.0.bak/pyparsing.py 2019-10-11 11:27:35.000000000 -0400
+++ pyparsing-2.2.0/pyparsing.py 2019-10-11 11:28:12.000000000 -0400
@@ -80,7 +80,10 @@
2018-05-17 15:57:39 +00:00
try:
from _thread import RLock
except ImportError:
- from threading import RLock
+ try:
+ from threading import RLock
+ except ImportError:
+ from dummy_threading import RLock
try:
from collections import OrderedDict as _OrderedDict