1cp -rf Python-3.3.7/Modules/_multiprocessing Modules/_multiprocessing
2cp -rf Python-3.3.7/Lib/multiprocessing multiprocessing
3cp -rf Python-3.3.7/Lib/test/test_multiprocessing.py tests/__init__.py
4cp -rf py2.7.10/examples .
5cp -f py2.7.10/*txt .
6cp -f py2.7.10/setup.py .
7cp -rf py2.7.10/doc .
8cp -f py2.7.10/index.html .
9
10# ----------------------------------------------------------------------
11CHANGES to examples:
12  updated to python3 from python2 (mostly print, xrange, and Errors)
13
14diff Modules/_multiprocessing/semaphore.c Python-3.3.7/Modules/_multiprocessing/semaphore.c
15200c200
16< //ifndef HAVE_SEM_TIMEDWAIT
17---
18> #ifndef HAVE_SEM_TIMEDWAIT
19261c261
20< //endif /* !HAVE_SEM_TIMEDWAIT */
21---
22> #endif /* !HAVE_SEM_TIMEDWAIT */
23
24# ----------------------------------------------------------------------
25dude@hilbert>$ diff setup.py py2.7.10/setup.py
26147a148,150
27>         'Modules/_multiprocessing/pipe_connection.c',
28>         'Modules/_multiprocessing/socket_connection.c',
29>         'Modules/_multiprocessing/win32_functions.c',
30151a155
31>         'Modules/_multiprocessing/socket_connection.c',
32203c207
33<                 define_macros=list(macros.items()),
34---
35>                 define_macros=macros.items(),
36
37diff multiprocessing/__init__.py Python-3.3.7/Lib/multiprocessing/__init__.py
3819c19
39< __version__ = '0.70.1'
40---
41> __version__ = '0.70a1'
42
43diff multiprocessing/connection.py Python-3.3.7/Lib/multiprocessing/connection.py
4415,20c15
45< try:
46<     import dill as pickle
47<     HIGHEST_PROTOCOL = pickle.DEFAULT_PROTOCOL
48< except ImportError:
49<     import pickle
50<     HIGHEST_PROTOCOL = pickle.HIGHEST_PROTOCOL
51---
52> import pickle
53211c206
54<         ForkingPickler(buf, HIGHEST_PROTOCOL).dump(obj)
55---
56>         ForkingPickler(buf, pickle.HIGHEST_PROTOCOL).dump(obj)
57
58diff multiprocessing/forking.py Python-3.3.7/Lib/multiprocessing/forking.py
5934,37c34
60< try:
61<     from dill import Pickler
62< except ImportError:
63<     from pickle import Pickler
64---
65> from pickle import Pickler
66166,169c163
67<     try:
68<         from dill import load, DEFAULT_PROTOCOL as HIGHEST_PROTOCOL
69<     except ImportError:
70<         from pickle import load, HIGHEST_PROTOCOL
71---
72>     from pickle import load, HIGHEST_PROTOCOL
73
74diff tests/__init__.py Python-3.3.7/Lib/test/test_multiprocessing.py
75446c446
76<             self.assertIn("__init__.py", err)
77---
78>             self.assertIn("test_multiprocessing.py", err)
791804c1804
80<     def _test_unpickleable_result(self):
81---
82>     def test_unpickleable_result(self):
833467c3467
84<     def _test_noforkbomb(self):
85---
86>     def test_noforkbomb(self):
87
88# ----------------------------------------------------------------------
89REPLACED "from multiprocessing" with "from multiprocess"
90REPLACED "from _multiprocessing" with "from _multiprocess"
91REPLACED "import _multiprocessing" with "import _multiprocess as _multiprocessing"
92REPLACED "multprocessing" with "multiprocess" wherever else relevant...
93ADDED *args, **kwds for ForkingPickler in __init__ and dump
94