##// END OF EJS Templates
Use format string for lockname again (was changed by 3e25a6eb5c9a)
Thomas Arendsen Hein -
r4959:8933b8ea default
parent child Browse files
Show More
@@ -60,7 +60,7 b' class lock(object):'
60 def trylock(self):
60 def trylock(self):
61 if lock._host is None:
61 if lock._host is None:
62 lock._host = socket.gethostname()
62 lock._host = socket.gethostname()
63 lockname = lock._host + ':' + str(os.getpid())
63 lockname = '%s:%s' % (lock._host, os.getpid())
64 while not self.held:
64 while not self.held:
65 try:
65 try:
66 util.makelock(lockname, self.f)
66 util.makelock(lockname, self.f)
General Comments 0
You need to be logged in to leave comments. Login now