Skip to content

Commit e67ddd4

Browse files
committed
Fix Py27 incompatibility.
1 parent 6f36f10 commit e67ddd4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

signac/contrib/filterparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# This software is licensed under the BSD 3-Clause License.
44
from __future__ import print_function
55
import sys
6-
from urllib.parse import urlencode
76

87
from ..core import json
98
from ..common import six
9+
from ..common.six.moves.urllib.parse import urlencode
1010
if six.PY2:
1111
from collections import Mapping, Iterable
1212
else:

signac/contrib/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from contextlib import contextmanager
1515
from itertools import groupby
1616
from multiprocessing.pool import ThreadPool
17-
from urllib.parse import urlparse
1817

1918
from .. import syncutil
2019
from ..core import json
@@ -37,6 +36,7 @@
3736
from .filterparse import parse_filter
3837
from .filterparse import urlencode_filter
3938
from .filterparse import _parse_filter_query
39+
from six.moves.urllib.parse import urlparse
4040
if six.PY2:
4141
from collections import Mapping, Iterable
4242
else:

signac/uri.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
# This software is licensed under the BSD 3-Clause License.
44
import os
55
import re
6-
from urllib.parse import urlparse, urlunparse
76

87
from .contrib.project import Project
8+
from .common.six.moves.urllib.parse import urlparse, urlunparse
99

1010

1111
_PATH_SCHEMA = r'(?P<root>.*?)(\/api\/v(?P<api_version>\d+)(?P<path>.*))'

0 commit comments

Comments
 (0)