pyodide/packages/pyparsing/patches/dummy_threading.patch

15 lines
316 B
Diff

--- pyparsing-2.2.0/pyparsing.py
+++ pyparsing-2.2.0/pyparsing.py
@@ -124,7 +124,10 @@
try:
from _thread import RLock
except ImportError:
- from threading import RLock
+ try:
+ from threading import RLock
+ except ImportError:
+ from dummy_threading import RLock
try:
# Python 3