Fix erro on python built without threading
This commit is contained in:
parent
5ceec08d32
commit
a261e1f57d
@ -258,7 +258,10 @@ def setup_profiling(args):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
sys.setswitchinterval(1000.0) # we have only a single python thread
|
try:
|
||||||
|
sys.setswitchinterval(1000.0) # we have only a single python thread
|
||||||
|
except AttributeError:
|
||||||
|
pass # python compiled without threading
|
||||||
if isosx:
|
if isosx:
|
||||||
ensure_osx_locale()
|
ensure_osx_locale()
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user