Permalink
Browse files

tools: make test.py Queue part Python 3 compatible

Signed-off-by: gengjiawen <technicalcute@gmail.com>

PR-URL: #25701
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information...
gengjiawen authored and addaleax committed Jan 25, 2019
1 parent 86e79a5 commit 7ba66505e3cb53c7f8100e3a3eabb903755a2101
Showing with 4 additions and 1 deletion.
  1. +4 −1 tools/test.py
@@ -47,7 +47,10 @@

from os.path import join, dirname, abspath, basename, isdir, exists
from datetime import datetime
from Queue import Queue, Empty
try:
from queue import Queue, Empty # Python 3
except ImportError:
from Queue import Queue, Empty # Python 2

try:
cmp # Python 2

0 comments on commit 7ba6650

Please sign in to comment.