Skip to content

Commit 182c68b

Browse files
committed
pandas-dev#29886 - Replace rm -rf pandas/ for repr() on parses.py
1 parent 04c0870 commit 182c68b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/io/parsers.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -913,8 +913,8 @@ def _get_options_with_defaults(self, engine):
913913
pass
914914
else:
915915
raise ValueError(
916-
"The %r option is not supported with the"
917-
" %r engine" % (argname, engine)
916+
f"The {repr(argname)} option is not supported with the"
917+
f" {repr(engine)} engine"
918918
)
919919
else:
920920
value = _deprecated_defaults.get(argname, default)
@@ -3607,8 +3607,8 @@ def __init__(self, f, colspecs, delimiter, comment, skiprows=None, infer_nrows=1
36073607

36083608
if not isinstance(self.colspecs, (tuple, list)):
36093609
raise TypeError(
3610-
"column specifications must be a list or tuple, "
3611-
"input was a %r" % type(colspecs).__name__
3610+
f"column specifications must be a list or tuple, "
3611+
f"input was a {repr(type(colspecs).__name__)}"
36123612
)
36133613

36143614
for colspec in self.colspecs:

0 commit comments

Comments
 (0)