]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Use list() instead of .copy() (as it is a Python 3.3 feature)
authorMukund Sivaraman <muks@isc.org>
Mon, 1 Jul 2013 15:07:42 +0000 (20:37 +0530)
committerMukund Sivaraman <muks@isc.org>
Mon, 1 Jul 2013 15:07:46 +0000 (20:37 +0530)
Suggested by Michal.

src/lib/python/isc/memmgr/builder.py

index 411c224029bbfe3f9db91cc469b8efdefc877da3..a60afaa24c80b8d47995b0eba7825d78e9316aa0 100644 (file)
@@ -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