mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #19478: Make choice of semaphore prefix more flexible.
This commit is contained in:
parent
32dfef81a2
commit
e943697750
2 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue