Skip to content

Commit

Permalink
tools: make test.py Queue part Python 3 compatible
Browse files Browse the repository at this point in the history
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 28, 2019
1 parent 86e79a5 commit 7ba6650
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/test.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@


from os.path import join, dirname, abspath, basename, isdir, exists from os.path import join, dirname, abspath, basename, isdir, exists
from datetime import datetime 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: try:
cmp # Python 2 cmp # Python 2
Expand Down

0 comments on commit 7ba6650

Please sign in to comment.