diff options
author | Thomas Wouters <thomas@python.org> | 2006-12-29 14:42:17 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-12-29 14:42:17 (GMT) |
commit | 04e820443b78edebc986212e74291daba2480a12 (patch) | |
tree | 8f0da3f89ecca48c1764f543f1e4a8bbcd54d140 /Modules | |
parent | e38ecee5c3c6ea0f0eba2dfe49c110279626b5e0 (diff) | |
download | cpython-04e820443b78edebc986212e74291daba2480a12.zip cpython-04e820443b78edebc986212e74291daba2480a12.tar.gz cpython-04e820443b78edebc986212e74291daba2480a12.tar.bz2 |
Backport trunk checkin r51565:
Fix SF bug #1545837: array.array borks on deepcopy. array.__deepcopy__()
needs to take an argument, even if it doesn't actually use it.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/arraymodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index efa7835..9de14fd 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1495,7 +1495,7 @@ PyMethodDef array_methods[] = { copy_doc}, {"count", (PyCFunction)array_count, METH_O, count_doc}, - {"__deepcopy__",(PyCFunction)array_copy, METH_NOARGS, + {"__deepcopy__",(PyCFunction)array_copy, METH_O, copy_doc}, {"extend", (PyCFunction)array_extend, METH_O, extend_doc}, |