summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing/managers.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-06-25 12:44:29 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-06-25 12:44:29 (GMT)
commit264800822a673f4faf9e377f07ea13f636944e75 (patch)
tree9f7a074f001835662ec9ee8fe6438600d9c10e1d /Lib/multiprocessing/managers.py
parentb09c9396cd74a50c237b77c76efa70e4a1aca863 (diff)
downloadcpython-264800822a673f4faf9e377f07ea13f636944e75.zip
cpython-264800822a673f4faf9e377f07ea13f636944e75.tar.gz
cpython-264800822a673f4faf9e377f07ea13f636944e75.tar.bz2
get rid of 2.6/3.0 switch statements in multiprocessing
Diffstat (limited to 'Lib/multiprocessing/managers.py')
-rw-r--r--Lib/multiprocessing/managers.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py
index f4da209..1460d6c 100644
--- a/Lib/multiprocessing/managers.py
+++ b/Lib/multiprocessing/managers.py
@@ -41,11 +41,6 @@ def reduce_array(a):
copy_reg.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
- def rebuild_as_list(obj):
- return list, (list(obj),)
- for view_type in view_types:
- copy_reg.pickle(view_type, rebuild_as_list)
#
# Type for identifying shared objects