mirror of https://gitlab.com/ita1024/waf.git
Fix Can't pickle local object '_createenviron.<locals>.encode' exceptions (Python 3.6)
This commit is contained in:
parent
d35cd0cf12
commit
aa361ee568
|
@ -849,7 +849,7 @@ def run_prefork_process(cmd, kwargs, cargs):
|
|||
kwargs['env'] = dict(os.environ)
|
||||
try:
|
||||
obj = base64.b64encode(cPickle.dumps([cmd, kwargs, cargs]))
|
||||
except TypeError:
|
||||
except (TypeError, AttributeError):
|
||||
return run_regular_process(cmd, kwargs, cargs)
|
||||
|
||||
proc = get_process()
|
||||
|
|
Loading…
Reference in New Issue