Suppress echoing of line in deprecation warnings

This is done by replacing warnings.formatwarning with a replacement
function that ignores the "line" parameter.

This is an ugly hack, and I'm open to better suggestions.
Merge pull request #17298 from terminalmage/warn_until

Suppress echoing of line in deprecation warnings