tools: make test.py Queue part Python 3 compatible

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

PR-URL: https://github.com/nodejs/node/pull/25701
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
gengjiawen authored and Myles Borins committed 2019-05-16 14:56:56 -04:00
1 parent 1afd614104
commit c6a2be2d68
1 file changed
+4 -1
+4 -1
View File
@@ -47,7 +47,10 @@ import copy
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