Skip to content

Commit

Permalink
Apply Python3 modernize transforms
Browse files Browse the repository at this point in the history
Main changes:
- use of __future__
- using six lib to:
	- deal with checking unicode
	- dict operations
	- other API changes
  • Loading branch information
manu-chroma committed Jun 27, 2017
1 parent 1eb19b6 commit 8b6f9b3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions schema_salad/jsonld_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from six.moves import urllib

import ruamel.yaml as yaml
import six
try:
from ruamel.yaml import CSafeLoader as SafeLoader
except ImportError:
Expand Down
2 changes: 2 additions & 0 deletions schema_salad/makedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
from six import StringIO

from typing import cast, Any, Dict, IO, List, Optional, Set, Text, Union
import six
from six.moves import range

_logger = logging.getLogger("salad")

Expand Down
2 changes: 2 additions & 0 deletions schema_salad/ref_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
import xml.sax
from typing import (cast, Any, AnyStr, Callable, Dict, List, Iterable,
Optional, Set, Text, Tuple, TypeVar, Union)
import six
from six.moves import range


_logger = logging.getLogger("salad")
Expand Down
2 changes: 2 additions & 0 deletions schema_salad/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

from typing import Any, List, Set, Union, Text
from .sourceline import SourceLine, lineno_re, bullets, indent
import six
from six.moves import range

_logger = logging.getLogger("salad")

Expand Down

0 comments on commit 8b6f9b3

Please sign in to comment.