Skip to content

Commit 0ddc613

Browse files
author
Lucas Lam
committed
remove earlier dict
1 parent d79fbf6 commit 0ddc613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ray/data/datasource/partitioning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def _parse_hive_path(self, dir_path: str) -> Dict[str, str]:
278278
dictionary for unpartitioned files.
279279
"""
280280
dirs = [d for d in dir_path.split("/") if d and (d.count("=") == 1)]
281-
kv_pairs = dict([d.split("=") for d in dirs] if dirs else [])
281+
kv_pairs = [d.split("=") for d in dirs] if dirs else []
282282
# url decode the partition values
283283
kv_pairs = [[pair[0], urllib.parse.unquote_plus(pair[1])] for pair in kv_pairs]
284284

0 commit comments

Comments
 (0)