mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #28053: Applying refactorings, docs and other cleanup to follow.
This commit is contained in:
parent
f1024f7425
commit
5458647bb8
13 changed files with 77 additions and 40 deletions
|
@ -14,8 +14,7 @@ import sys
|
|||
import tempfile
|
||||
import threading
|
||||
|
||||
from . import context
|
||||
from . import reduction
|
||||
from .context import reduction, assert_spawning
|
||||
from . import util
|
||||
|
||||
__all__ = ['BufferWrapper']
|
||||
|
@ -48,7 +47,7 @@ if sys.platform == 'win32':
|
|||
self._state = (self.size, self.name)
|
||||
|
||||
def __getstate__(self):
|
||||
context.assert_spawning(self)
|
||||
assert_spawning(self)
|
||||
return self._state
|
||||
|
||||
def __setstate__(self, state):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue