Issue #19343: Expose FreeBSD-specific APIs in resource module.  Original patch by Koobs.
Attempt to fix OpenIndiana build issue introduced by #19922
- Issue #19736: Add module-level statvfs constants defined for GNU/glibc
  based systems.
Issue #19535: Fixed test_docxmlrpc when python is run with -OO.
Issue #19535: Fixed test_docxmlrpc, test_functools, test_inspect, and
test_statistics when python is run with -OO.
#18430: Document that peek() may change the position of the underlying file for
the BZ2File, GzipFile and LZMAFile classes.
Closes #18430: Document that peek() may change the position of the underlying
file for the BZ2File, GzipFile and LZMAFile classes.
Fixes issue #19929: Call os.read with 32768 within subprocess.Popen
communicate rather than 4096 for efficiency.  A microbenchmark shows
Linux and OS X both using ~50% less cpu time this way.
Fixes issue #19929: Call os.read with 32768 within subprocess.Popen
communicate rather than 4096 for efficiency.  A microbenchmark shows
Linux and OS X both using ~50% less cpu time this way.
Issue #17429: platform.linux_distribution() now decodes files from the UTF-8
encoding with the surrogateescape error handler, instead of decoding from the
locale encoding in strict mode. It fixes the function on Fedora 19 which is
probably the first major distribution release with a non-ASCII name. Patch
written by Toshio Kuratomi.
(Merge 3.3) Issue #17429: platform.linux_distribution() now decodes files from
the UTF-8 encoding with the surrogateescape error handler, instead of decoding
from the locale encoding in strict mode. It fixes the function on Fedora 19
which is probably the first major distribution release with a non-ASCII name.
Patch written by Toshio Kuratomi.
Issue #17429: some PEP 8 compliance fixes for the platform modules, add whitespaces
Issue #17429: Oops, remove unused import
(Merge 3.3) Issue #17429: Oops, remove unused import
Fix #19830: Fix a ResourceWarning in test_poplib.
Patch written by Vajrasky Kok.
Close #19880: Fix a reference leak in unittest.TestCase. Explicitly break
reference cycles between frames and the _Outcome instance.
Issue #19876: Run also test_selectors.test_unregister_after_fd_close_and_reuse() on Windows

os.dup2() is available on Windows.
Backed out changeset c4c1c4bc8086