8000 [FIX] _extensions: p3 compatibility (3) · AllenChen7/documentation-user@4143a50 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4143a50

Browse files
committed
[FIX] _extensions: p3 compatibility (3)
1 parent 914c5eb commit 4143a50

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

_extensions/demo_link.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
import Queue
21
import collections
32
import threading
43
import urllib
54
import xmlrpclib
65

6+
try:
7+
import Queue
8+
except ImportError:
9+
# P3
10+
import queue as Queue
11+
712
from xml.etree import ElementTree as ET
813

914
from docutils import nodes, utils

0 commit comments

Comments
 (0)
0