File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ def _get_skiprows(skiprows):
103
103
elif skiprows is None :
104
104
return 0
105
105
raise TypeError (
106
- f" { ( type ( skiprows ). __name__ ) } is not a valid type for skipping rows"
106
+ "%r is not a valid type for skipping rows" % type ( skiprows ). __name__
107
107
)
108
108
109
109
@@ -133,7 +133,7 @@ def _read(obj):
133
133
except (TypeError , ValueError ):
134
134
pass
135
135
else :
136
- raise TypeError (f "Cannot read object of type { ( type (obj ).__name__ ) } " )
136
+ raise TypeError ("Cannot read object of type %r" % type (obj ).__name__ )
137
137
return text
138
138
139
139
Original file line number Diff line number Diff line change @@ -913,8 +913,8 @@ def _get_options_with_defaults(self, engine):
913
913
pass
914
914
else :
915
915
raise ValueError (
916
- f"The { argname } option is not supported with the"
917
- f" { engine } engine"
916
+ f"The { repr ( argname ) } option is not supported with the"
917
+ f" { repr ( engine ) } engine"
918
918
)
919
919
else :
920
920
value = _deprecated_defaults .get (argname , default )
You can’t perform that action at this time.
0 commit comments