Skip to content

Commit 8b6f9b3

Browse files
committed
Apply Python3 modernize transforms
Main changes: - use of __future__ - using six lib to: - deal with checking unicode - dict operations - other API changes
1 parent 1eb19b6 commit 8b6f9b3

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

schema_salad/jsonld_context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from six.moves import urllib
88

99
import ruamel.yaml as yaml
10+
import six
1011
try:
1112
from ruamel.yaml import CSafeLoader as SafeLoader
1213
except ImportError:

schema_salad/makedoc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
from six import StringIO
1919

2020
from typing import cast, Any, Dict, IO, List, Optional, Set, Text, Union
21+
import six
22+
from six.moves import range
2123

2224
_logger = logging.getLogger("salad")
2325

schema_salad/ref_resolver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
import xml.sax
3333
from typing import (cast, Any, AnyStr, Callable, Dict, List, Iterable,
3434
Optional, Set, Text, Tuple, TypeVar, Union)
35+
import six
36+
from six.moves import range
3537

3638

3739
_logger = logging.getLogger("salad")

schema_salad/validate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
from typing import Any, List, Set, Union, Text
1414
from .sourceline import SourceLine, lineno_re, bullets, indent
15+
import six
16+
from six.moves import range
1517

1618
_logger = logging.getLogger("salad")
1719

0 commit comments

Comments
 (0)