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 9b9f283 commit 80e8a1aCopy full SHA for 80e8a1a
pandas/io/html.py
@@ -103,7 +103,7 @@ def _get_skiprows(skiprows):
103
elif skiprows is None:
104
return 0
105
raise TypeError(
106
- f"{repr(type(skiprows).__name__)} is not a valid type for skipping rows"
+ "%r is not a valid type for skipping rows" % type(skiprows).__name__
107
)
108
109
@@ -133,7 +133,7 @@ def _read(obj):
133
except (TypeError, ValueError):
134
pass
135
else:
136
- raise TypeError(f"Cannot read object of type {type(obj).__name__}")
+ raise TypeError("Cannot read object of type %r" % type(obj).__name__)
137
return text
138
139
0 commit comments