Issue #19478: Make choice of semaphore prefix more flexible.

This commit is contained in:
Richard Oudkerk 2013-11-02 17:05:07 +00:00
parent 32dfef81a2
commit e943697750
2 changed files with 10 additions and 4 deletions

View file

@ -115,8 +115,8 @@ class SemLock(object):
@staticmethod
def _make_name():
return '/%s-%s' % (process.current_process()._config['semprefix'],
next(SemLock._rand))
return '%s-%s' % (process.current_process()._config['semprefix'],
next(SemLock._rand))
#
# Semaphore