Skip to content

Commit e72e02c

Browse files
authored
Merge pull request #5643 from jmchilton/sniff_fix
[18.01] Consistent sniffing regardless of in_place.
2 parents fa3ec5f + 2270f72 commit e72e02c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/data_source/upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def add_file(dataset, registry, json_file, output_path):
290290
else:
291291
line_count, converted_path = sniff.convert_newlines(dataset.path, in_place=in_place, tmp_dir=tmpdir, tmp_prefix=tmp_prefix)
292292
if dataset.file_type == 'auto':
293-
ext = sniff.guess_ext(dataset.path, registry.sniff_order)
293+
ext = sniff.guess_ext(converted_path or dataset.path, registry.sniff_order)
294294
else:
295295
ext = dataset.file_type
296296
data_type = ext

0 commit comments

Comments
 (0)