diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2013-11-02 17:05:07 (GMT) |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2013-11-02 17:05:07 (GMT) |
commit | e943697750a5828c0b4937ab28a301001700ad84 (patch) | |
tree | 60850ebf0c51038636087a6b3ffbaf73795c3a09 /Lib/multiprocessing/synchronize.py | |
parent | 32dfef81a2c99d755c485ea5399d28b52d37a9e0 (diff) | |
download | cpython-e943697750a5828c0b4937ab28a301001700ad84.zip cpython-e943697750a5828c0b4937ab28a301001700ad84.tar.gz cpython-e943697750a5828c0b4937ab28a301001700ad84.tar.bz2 |
Issue #19478: Make choice of semaphore prefix more flexible.
Diffstat (limited to 'Lib/multiprocessing/synchronize.py')
-rw-r--r-- | Lib/multiprocessing/synchronize.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/multiprocessing/synchronize.py b/Lib/multiprocessing/synchronize.py index 82c30a2..9d8e282 100644 --- a/Lib/multiprocessing/synchronize.py +++ b/Lib/multiprocessing/synchronize.py @@ -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 |