diff options
Diffstat (limited to 'lib/parallel.py')
-rw-r--r-- | lib/parallel.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/parallel.py b/lib/parallel.py index 5ec7a1af6..ed13df4fd 100644 --- a/lib/parallel.py +++ b/lib/parallel.py @@ -11,7 +11,13 @@ import functools import logging import multiprocessing import os -import Queue +try: + import Queue +except ImportError: + # Python-3 renamed to "queue". We still use Queue to avoid collisions + # with naming variables as "queue". Maybe we'll transition at some point. + # pylint: disable=F0401 + import queue as Queue import signal import sys import tempfile |