summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-06-25 13:04:48 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-06-25 13:04:48 (GMT)
commitd61438a939c0d3aea558419519cf39a60c85788b (patch)
treef612090c3ef513c3fb2e39e1f24344e7c9d6dd0d /Lib/multiprocessing
parent1fcfe211f436feefbf6101f1f5dac145742c9462 (diff)
downloadcpython-d61438a939c0d3aea558419519cf39a60c85788b.zip
cpython-d61438a939c0d3aea558419519cf39a60c85788b.tar.gz
cpython-d61438a939c0d3aea558419519cf39a60c85788b.tar.bz2
make changes for py3k for multiprocessing
Diffstat (limited to 'Lib/multiprocessing')
-rw-r--r--Lib/multiprocessing/managers.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py
index e4d1688..a460edc 100644
--- a/Lib/multiprocessing/managers.py
+++ b/Lib/multiprocessing/managers.py
@@ -41,7 +41,7 @@ def reduce_array(a):
copyreg.pickle(array.array, reduce_array)
view_types = [type(getattr({}, name)()) for name in ('items','keys','values')]
-if view_types[0] is not list: # XXX only needed in Py3.0
+if view_types[0] is not list: # only needed in Py3.0
def rebuild_as_list(obj):
return list, (list(obj),)
for view_type in view_types:
@@ -930,14 +930,11 @@ def Array(typecode, sequence, lock=True):
#
class IteratorProxy(BaseProxy):
- # XXX remove methods for Py3.0 and Py2.6
- _exposed_ = ('__next__', 'next', 'send', 'throw', 'close')
+ _exposed_ = ('__next__', 'send', 'throw', 'close')
def __iter__(self):
return self
def __next__(self, *args):
return self._callmethod('__next__', args)
- def next(self, *args):
- return self._callmethod('next', args)
def send(self, *args):
return self._callmethod('send', args)
def throw(self, *args):