Skip to content

Commit 37e38eb

Browse files
committed
Replace pathlib with pathlib2
1 parent aab9b2c commit 37e38eb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

openapi_spec_validator/__main__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import logging
22
import argparse
33
import os
4-
import pathlib
4+
try:
5+
import pathlib
6+
except ImportError:
7+
import pathlib2 as pathlib
58
import sys
69

710

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def run_tests(self):
7171
"jsonschema<3",
7272
"PyYAML>=3.13",
7373
"six",
74-
'pathlib;python_version=="2.7"',
74+
'pathlib2;python_version=="2.7"',
7575
],
7676
tests_require=[
7777
"mock",

0 commit comments

Comments
 (0)