MCPcopy
hub / github.com/pyload/pyload / new

Function new

module/utils.py:165–171  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

163
164def lock(func):
165 def new(*args):
166 #print "Handler: %s args: %s" % (func,args[1:])
167 args[0].lock.acquire()
168 try:
169 return func(*args)
170 finally:
171 args[0].lock.release()
172
173 return new
174

Callers

nothing calls this directly

Calls 2

acquireMethod · 0.80
releaseMethod · 0.45

Tested by

no test coverage detected