##// END OF EJS Templates
pycompat: add util.stringio to handle py3 divergence...
timeless -
r28835:68a946e8 default
parent child Browse files
Show More
@@ -11,6 +11,13 This contains aliases to hide python ver
11 from __future__ import absolute_import
11 from __future__ import absolute_import
12
12
13 try:
13 try:
14 import cStringIO as io
15 stringio = io.StringIO
16 except ImportError:
17 import io
18 stringio = io.StringIO
19
20 try:
14 import Queue as _queue
21 import Queue as _queue
15 _queue.Queue
22 _queue.Queue
16 except ImportError:
23 except ImportError:
@@ -49,6 +49,7 from . import (
49 for attr in (
49 for attr in (
50 'empty',
50 'empty',
51 'queue',
51 'queue',
52 'stringio',
52 ):
53 ):
53 globals()[attr] = getattr(pycompat, attr)
54 globals()[attr] = getattr(pycompat, attr)
54
55
General Comments 0
You need to be logged in to leave comments. Login now