Browse Source

[master] Use list() instead of .copy() (as it is a Python 3.3 feature)

Suggested by Michal.
Mukund Sivaraman 11 years ago
parent
commit
e42db3d283
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/python/isc/memmgr/builder.py

+ 1 - 1
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