mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 23:34:57 -04:00
makepanda: Fix deprecated spelling for threading API
The new spelling is available since Python 2.6, so there is no chance of breakage here.
This commit is contained in:
parent
15c84afbe9
commit
985ec3061c
@ -7093,7 +7093,7 @@ def ParallelMake(tasklist):
|
||||
# Create the workers
|
||||
for slave in range(THREADCOUNT):
|
||||
th = threading.Thread(target=BuildWorker, args=[taskqueue, donequeue])
|
||||
th.setDaemon(1)
|
||||
th.daemon = True
|
||||
th.start()
|
||||
# Feed tasks to the workers.
|
||||
tasksqueued = 0
|
||||
|
@ -24,7 +24,7 @@ SUFFIX_LIB = [".lib",".ilb"]
|
||||
VCS_DIRS = set(["CVS", "CVSROOT", ".git", ".hg", "__pycache__"])
|
||||
VCS_FILES = set([".cvsignore", ".gitignore", ".gitmodules", ".hgignore"])
|
||||
STARTTIME = time.time()
|
||||
MAINTHREAD = threading.currentThread()
|
||||
MAINTHREAD = threading.current_thread()
|
||||
OUTPUTDIR = "built"
|
||||
CUSTOM_OUTPUTDIR = False
|
||||
THIRDPARTYBASE = None
|
||||
@ -243,7 +243,7 @@ def ProgressOutput(progress, msg, target = None):
|
||||
sys.stdout.flush()
|
||||
sys.stderr.flush()
|
||||
prefix = ""
|
||||
thisthread = threading.currentThread()
|
||||
thisthread = threading.current_thread()
|
||||
if thisthread is MAINTHREAD:
|
||||
if progress is None:
|
||||
prefix = ""
|
||||
@ -273,7 +273,7 @@ def ProgressOutput(progress, msg, target = None):
|
||||
def exit(msg = ""):
|
||||
sys.stdout.flush()
|
||||
sys.stderr.flush()
|
||||
if (threading.currentThread() == MAINTHREAD):
|
||||
if threading.current_thread() == MAINTHREAD:
|
||||
SaveDependencyCache()
|
||||
print("Elapsed Time: " + PrettyTime(time.time() - STARTTIME))
|
||||
print(msg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user