Show More
@@ -1,18 +1,19 b'' | |||
|
1 | 1 | # pycompat.py - portability shim for python 3 |
|
2 | 2 | # |
|
3 | 3 | # This software may be used and distributed according to the terms of the |
|
4 | 4 | # GNU General Public License version 2 or any later version. |
|
5 | 5 | |
|
6 | 6 | """Mercurial portability shim for python 3. |
|
7 | 7 | |
|
8 | 8 | This contains aliases to hide python version-specific details from the core. |
|
9 | 9 | """ |
|
10 | 10 | |
|
11 | 11 | from __future__ import absolute_import |
|
12 | 12 | |
|
13 | 13 | try: |
|
14 | 14 | import Queue as _queue |
|
15 | _queue.Queue | |
|
15 | 16 | except ImportError: |
|
16 | 17 | import queue as _queue |
|
17 | 18 | empty = _queue.Empty |
|
18 | 19 | queue = _queue.Queue |
General Comments 0
You need to be logged in to leave comments.
Login now