add missing warnings import
propagate deprecation of Formatter.plain_text_only