mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 09:05:47 +08:00
fallback to pathlib2 for older python
This commit is contained in:
2 files changed
+6
-2
No files matched your search
@@ -362,7 +362,7 @@ class ParquetDatasetPiece(object):
|
||||
|
||||
Parameters
|
||||
----------
|
||||
path : str
|
||||
path : str or pathlib.Path
|
||||
Path to file in the file system where this piece is located
|
||||
partition_keys : list of tuples
|
||||
[(column name, ordinal index)]
|
||||
|
||||
@@ -16,7 +16,11 @@
|
||||
# under the License.
|
||||
|
||||
import pytest
|
||||
import pathlib
|
||||
|
||||
try:
|
||||
import pathlib
|
||||
except ImportError:
|
||||
import pathlib2 as pathlib # py2 compat
|
||||
|
||||
|
||||
groups = [
|
||||
|
||||
Reference in new issue
Block a user