From: Mukund Sivaraman Date: Mon, 1 Jul 2013 15:07:42 +0000 (+0530) Subject: [master] Use list() instead of .copy() (as it is a Python 3.3 feature) X-Git-Tag: bind10-1.2.0beta1-release~370 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e42db3d2834457c04e19c256a67f4059cd36860d;p=thirdparty%2Fkea.git [master] Use list() instead of .copy() (as it is a Python 3.3 feature) Suggested by Michal. --- diff --git a/src/lib/python/isc/memmgr/builder.py b/src/lib/python/isc/memmgr/builder.py index 411c224029..a60afaa24c 100644 --- a/src/lib/python/isc/memmgr/builder.py +++ b/src/lib/python/isc/memmgr/builder.py @@ -68,7 +68,7 @@ class MemorySegmentBuilder: self._cv.wait() # Move the queue content to a local queue. Be careful of # not making assignments to reference variables. - local_command_queue = self._command_queue.copy() + local_command_queue = list(self._command_queue) del self._command_queue[:] # Run commands passed in the command queue sequentially