Issue #22191: Fix warnings.__all__.

Thanks to Jon Poler for the patch.
Issue #22150: Fix deprecated-removed directive in Sphinx 1.2.