pyodide/pyparsing/patches/dummy_threading.patch

16 lines
518 B
Diff
Raw Normal View History

2018-05-17 15:57:39 +00:00
diff -ur pyparsing-2.2.0/pyparsing.py pyparsing-2.2.0.bak/pyparsing.py
--- pyparsing-2.2.0/pyparsing.py 2017-03-05 21:06:06.000000000 -0500
+++ pyparsing-2.2.0.bak/pyparsing.py 2018-05-17 11:25:17.960270391 -0400
@@ -80,7 +80,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:
from collections import OrderedDict as _OrderedDict