File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5203,9 +5203,9 @@ deprec_to_valid_alias = {
52035203def raise_invalid_freq (freq: str , extra_message: str | None = None ) -> None:
52045204 msg = f" Invalid frequency: {freq}."
52055205 if extra_message is not None:
5206- msg += " " + extra_message
5206+ msg += f" { extra_message}"
52075207 if freq in deprec_to_valid_alias:
5208- msg += " " + " Did you mean {deprec_to_valid_alias[name ]}?"
5208+ msg += f" Did you mean {deprec_to_valid_alias[freq ]}?"
52095209 raise ValueError(msg )
52105210
52115211
Original file line number Diff line number Diff line change @@ -1158,7 +1158,7 @@ def test_offset_multiplication(
11581158
11591159
11601160def test_offset_deprecated_error ():
1161- with pytest .raises (ValueError , match = r "Did you mean h? " ):
1161+ with pytest .raises (ValueError , match = "Did you mean h" ):
11621162 date_range ("2012-01-01" , periods = 3 , freq = "H" )
11631163
11641164
You can’t perform that action at this time.
0 commit comments