diff options
| author | Bernard Xiong <[email protected]> | 2021-04-10 13:52:07 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-10 13:52:07 +0800 |
| commit | 76bd981addf88212ea932f6fd8d10b3bac2f63d4 (patch) | |
| tree | 885fac7725b5f76d63eadea2e94ec4280373f182 /tools/win32spawn.py | |
| parent | 2cf49c58f5d6a8797851a07e8cd1ab2ae2fd840f (diff) | |
| parent | 510955ba42cb6c040598d885c640ba50bbb885e4 (diff) | |
Merge pull request #4567 from enkiller/0405
[tools] Python 3 compatibility support
Diffstat (limited to 'tools/win32spawn.py')
| -rw-r--r-- | tools/win32spawn.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/win32spawn.py b/tools/win32spawn.py index 9b878bf69f..1c2cfcf83b 100644 --- a/tools/win32spawn.py +++ b/tools/win32spawn.py @@ -24,7 +24,13 @@ import os import threading -import Queue +import sys + +_PY2 = sys.version_info[0] < 3 +if _PY2: + import Queue +else: + import queue as Queue # Windows import import win32file |
