Skip to content

Commit 3704c98

Browse files
committed
py3 fix: use six StringIO import
1 parent e795ac9 commit 3704c98

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

schema_salad/makedoc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import copy
88
import re
99
import sys
10-
from StringIO import StringIO
10+
1111
import logging
1212

1313
from . import schema
@@ -16,6 +16,7 @@
1616
import six
1717
from six.moves import range
1818
from six.moves.urllib import parse
19+
from six import StringIO
1920

2021
from typing import cast, Any, Dict, IO, List, Optional, Set, Text, Union
2122

schema_salad/ref_resolver.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
import six
1010
from six.moves import range
1111
import urllib
12-
# import urlparse
12+
1313
from six.moves.urllib import parse
14+
from six import StringIO
1415

1516
import re
1617
import copy
17-
from StringIO import StringIO
18+
1819

1920
from . import validate
2021
from schema_salad.utils import aslist, flatten

schema_salad/tests/test_cli_args.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
import schema_salad.main as cli_parser
66

7-
""" for capturing print() output """
7+
# for capturing print() output
88
from contextlib import contextmanager
9-
from StringIO import StringIO
9+
from six import StringIO
1010

1111
@contextmanager
1212
def captured_output():

0 commit comments

Comments
 (0)