From 80e8a1a7f4e80743b3e9db1fa6204434148b0021 Mon Sep 17 00:00:00 2001 From: jvpy Date: Wed, 4 Dec 2019 21:54:13 -0300 Subject: [PATCH] Revert "STY - Add repr to html.py and parsers.py - #29953" This reverts commit 029ee4dbfff5362bfe7d21e140d0e22517a0a068. --- pandas/io/html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/io/html.py b/pandas/io/html.py index ff401ee539aa9..b8cb6679a9562 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -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__ ) @@ -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