Fix erro on python built without threading

This commit is contained in:
Kovid Goyal
2017-09-09 19:26:33 +05:30
parent 5ceec08d32
commit a261e1f57d

View File

@@ -258,7 +258,10 @@ def setup_profiling(args):
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:
ensure_osx_locale()
try: