diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2014-02-27 21:14:31 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2014-02-27 21:14:31 (GMT) |
| commit | b807577da257ba2475abe955120fb7bdf739875c (patch) | |
| tree | af84ab4998c5cee765c282f3b0ee04e0ad88b61b /Lib/copy.py | |
| parent | 3673670b675d8a686686a449a0a9a551f53dfee7 (diff) | |
| download | cpython-b807577da257ba2475abe955120fb7bdf739875c.zip cpython-b807577da257ba2475abe955120fb7bdf739875c.tar.gz cpython-b807577da257ba2475abe955120fb7bdf739875c.tar.bz2 | |
Issue #20791: copy.copy() now doesn't make a copy when the input is a bytes object. Initial patch by Peter Otten.
Diffstat (limited to 'Lib/copy.py')
| -rw-r--r-- | Lib/copy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/copy.py b/Lib/copy.py index d26bcdb..bb8840e 100644 --- a/Lib/copy.py +++ b/Lib/copy.py @@ -110,7 +110,7 @@ _copy_dispatch = d = {} def _copy_immutable(x): return x for t in (type(None), int, float, bool, str, tuple, - frozenset, type, range, + bytes, frozenset, type, range, types.BuiltinFunctionType, type(Ellipsis), types.FunctionType, weakref.ref): d[t] = _copy_immutable |
