File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
packages/python/plotly/plotly
tests/test_optional/test_kaleido Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11from __future__ import absolute_import
22from six import string_types
33import os
4+ import sys
45
56
67import json
78import plotly
89from plotly .io ._utils import validate_coerce_fig_to_dict
910
10- try :
11+ if sys . version_info >= ( 3 , 4 ) :
1112 from pathlib import Path , PurePath
12- except ImportError :
13+ else :
1314 # For Python < 3.4 use pathlib2
1415 from pathlib2 import Path , PurePath
1516
Original file line number Diff line number Diff line change 44from contextlib import contextmanager
55from io import BytesIO
66
7- try :
7+ if sys . version_info >= ( 3 , 4 ) :
88 from pathlib import Path
9- except ImportError :
9+ else :
1010 # For Python < 3.4 use pathlib2
1111 from pathlib2 import Path
1212
You can’t perform that action at this time.
0 commit comments