Skip to content

Commit

Permalink
py3 fix: use six StringIO import
Browse files Browse the repository at this point in the history
  • Loading branch information
manu-chroma committed Jun 27, 2017
1 parent e795ac9 commit 3704c98
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion schema_salad/makedoc.py
Expand Up @@ -7,7 +7,7 @@
import copy
import re
import sys
from StringIO import StringIO

import logging

from . import schema
Expand All @@ -16,6 +16,7 @@
import six
from six.moves import range
from six.moves.urllib import parse
from six import StringIO

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

Expand Down
5 changes: 3 additions & 2 deletions schema_salad/ref_resolver.py
Expand Up @@ -9,12 +9,13 @@
import six
from six.moves import range
import urllib
# import urlparse

from six.moves.urllib import parse
from six import StringIO

import re
import copy
from StringIO import StringIO


from . import validate
from schema_salad.utils import aslist, flatten
Expand Down
4 changes: 2 additions & 2 deletions schema_salad/tests/test_cli_args.py
Expand Up @@ -4,9 +4,9 @@

import schema_salad.main as cli_parser

""" for capturing print() output """
# for capturing print() output
from contextlib import contextmanager
from StringIO import StringIO
from six import StringIO

@contextmanager
def captured_output():
Expand Down

0 comments on commit 3704c98

Please sign in to comment.