We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33f2aee commit 6f513bdCopy full SHA for 6f513bd
Lib/multiprocessing/shared_memory.py
@@ -202,11 +202,8 @@ def name(self):
202
"Unique name that identifies the shared memory block."
203
reported_name = self._name
204
if _USE_POSIX and self._prepend_leading_slash:
205
- try:
206
- if self._name[0] == "/":
207
- reported_name = self._name[1:]
208
- except Exception:
209
- pass
+ if self._name.startswith("/"):
+ reported_name = self._name[1:]
210
return reported_name
211
212
@property
0 commit comments