Issue #28053: Applying refactorings, docs and other cleanup to follow.

This commit is contained in:
Davin Potts 2016-09-09 18:03:10 -05:00
parent f1024f7425
commit 5458647bb8
13 changed files with 77 additions and 40 deletions

View file

@ -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):