Skip to content

Commit 65f88b9

Browse files
committed
Updating implementation per reviewer recommendations.
1 parent 9dfa18d commit 65f88b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ def read_xml(
11271127
"""
11281128
check_dtype_backend(dtype_backend)
11291129

1130-
if not any(
1130+
if isinstance(path_or_buffer, str) and not any(
11311131
[
11321132
is_file_like(path_or_buffer),
11331133
file_exists(path_or_buffer),

0 commit comments

Comments
 (0)