Skip to content

Commit

Permalink
Revert "STY - Add repr to html.py and parsers.py - pandas-dev#29953"
Browse files Browse the repository at this point in the history
This reverts commit 029ee4d.
  • Loading branch information
JvPy committed Dec 5, 2019
1 parent 9b9f283 commit 80e8a1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/io/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _get_skiprows(skiprows):
elif skiprows is None:
return 0
raise TypeError(
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__
)


Expand Down Expand Up @@ -133,7 +133,7 @@ def _read(obj):
except (TypeError, ValueError):
pass
else:
raise TypeError(f"Cannot read object of type {type(obj).__name__}")
raise TypeError("Cannot read object of type %r" % type(obj).__name__)
return text


Expand Down

0 comments on commit 80e8a1a

Please sign in to comment.