We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20e7ef2 commit 526c224Copy full SHA for 526c224
pandas/io/xml.py
@@ -1127,11 +1127,13 @@ def read_xml(
1127
"""
1128
check_dtype_backend(dtype_backend)
1129
1130
- if (
1131
- not is_file_like(path_or_buffer)
1132
- and not file_exists(path_or_buffer)
1133
- and not is_url(path_or_buffer)
1134
- and not is_fsspec_url(path_or_buffer)
+ if not any(
+ [
+ is_file_like(path_or_buffer),
+ file_exists(path_or_buffer),
+ is_url(path_or_buffer),
1135
+ is_fsspec_url(path_or_buffer),
1136
+ ]
1137
):
1138
warnings.warn(
1139
"Passing literal xml to 'read_xml' is deprecated and "
0 commit comments