commit | e469a0c741832f6584513f4a382d6b93f417b8d2 | [log] [tgz] |
---|---|---|
author | Dylan Deng <dxx1104@gmail.com> | Sat Jun 23 15:02:26 2018 +0800 |
committer | Dylan Deng <dxx1104@gmail.com> | Tue Jul 24 22:20:08 2018 +0800 |
tree | 4ea43078d29bb494fb6688cf75f2a1d03e936d5a | |
parent | 65b0ba5aa0447f7ee25103828115662b1eb80ff9 [diff] [blame] |
fix some sync error while using python3 Change-Id: I70925e48756c356d48359679d8ad1b9e33a68595
diff --git a/platform_utils.py b/platform_utils.py index 33cb2ec..a3e9653 100644 --- a/platform_utils.py +++ b/platform_utils.py
@@ -20,7 +20,12 @@ import shutil import stat -from Queue import Queue +from pyversion import is_python3 +if is_python3(): + from queue import Queue +else: + from Queue import Queue + from threading import Thread