Skip to content

Commit ad742f3

Browse files
committed
Manage pathlib and pathlib2 for all python versions
1 parent cb754df commit ad742f3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
typing==3.5.2.2 ; python_version>="2.7"
22
avro-python3 ; python_version>="3"
33
avro==1.8.1 ; python_version<"3"
4+
pathlib2==2.1.0 ; python_version<"3.4"
45
ruamel.yaml==0.12.4
56
rdflib==4.2.1
67
rdflib-jsonld==0.4.0
78
html5lib==0.9999999
89
mistune==0.7.3
910
CacheControl==0.11.7
1011
lockfile==0.12.2
11-
pathlib2==2.1.0

schema_salad/ref_resolver.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
import pprint
1212
from StringIO import StringIO
1313
try:
14-
# python 3
14+
# python >3.3
1515
import pathlib
1616
except:
17-
# python 2
1817
import pathlib2 as pathlib
1918

2019
from . import validate

0 commit comments

Comments
 (0)