Skip to content

Commit 8354a1d

Browse files
authored
MAINT: Use set literal for unsupported + depr args
Initializes unsupported and deprecated argument sets with set literals instead of the set constructor in pandas/io/parsers.py, as the former is slightly faster than the latter.
1 parent e14431f commit 8354a1d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/io/parsers.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -487,18 +487,18 @@ def _read(filepath_or_buffer, kwds):
487487
'widths': None,
488488
}
489489

490-
_c_unsupported = set(['skipfooter'])
491-
_python_unsupported = set([
490+
_c_unsupported = {'skipfooter'}
491+
_python_unsupported = {
492492
'low_memory',
493493
'buffer_lines',
494494
'float_precision',
495-
])
496-
_deprecated_args = set([
495+
}
496+
_deprecated_args = {
497497
'as_recarray',
498498
'buffer_lines',
499499
'compact_ints',
500500
'use_unsigned',
501-
])
501+
}
502502

503503

504504
def _make_parser_function(name, sep=','):

0 commit comments

Comments
 (0)