Skip to content

Commit da7731d

Browse files
committed
Fixed typo in doc, removed comment.
1 parent 7c65017 commit da7731d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Doc/library/multiprocessing.shared_memory.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ instances::
109109

110110
>>> from multiprocessing import shared_memory
111111
>>> shm_a = shared_memory.SharedMemory(None, size=10)
112-
>>> type(shm_b.buf)
112+
>>> type(shm_a.buf)
113113
<class 'memoryview'>
114114
>>> buffer = shm_a.buf
115115
>>> len(buffer)

Lib/multiprocessing/shared_memory.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class ExistentialError(Error): pass
3434
import ctypes
3535
from ctypes import wintypes
3636

37-
#kernel32 = ctypes.wintypes.WinDLL("kernel32", use_last_error=True)
3837
kernel32 = ctypes.windll.kernel32
3938

4039
class MEMORY_BASIC_INFORMATION(ctypes.Structure):

0 commit comments

Comments
 (0)