Issue #17111: Prevent test_surrogates (test_fileio) failure on OS X 10.4.

An odd bug in OS X 10.4 causes open(2) on a non-existent,
invalid-encoded filename to return errno 22, EINVAL: Invalid argument,
instead of the expected errno 2, ENOENT: No such file or directory,
*if* the containing directory is not empty.  That caused frequent
failures when running the buildbot tests on 10.4 depending on the state
of the test working directory.  The failure is easy to reproduce on
10.4 by running the test directly (not with regrtest), first in an empty
directory, then after adding a file to it.  The fix is to check for and
pass if either errno is returned.
Clean trailing whitespaces in Makefile.pre.in and grpmodule.c.
Issue #4591: Uid and gid values larger than 2**31 are supported now.
Issue #13555: cPickle now supports files larger than 2 GiB.
Issue #16800: tempfile.gettempdir() no longer left temporary files when
the disk is full.  Original patch by Amir Szekely.
Fix for issue #16800: Use buffered write to handle EINTR.
Issue #5308: Raise ValueError when marshalling too large object (a sequence
with size >= 2**31), instead of producing illegal marshal data.
Issue #11311: StringIO.readline(0) now returns an empty string as all other
file-like objects.
Fix tests for issue #5308.
Issue #16743: Fix mmap overflow check on 32 bit Windows
Add Misc/NEWS entry for Issue #16743
Issue #17208: add a note about the termination behaviour of daemon threads.
#17178: update any()/all() docstrings to document their behavior with empty iterables.  Patch by Ankur Ankan.
Issue #13169: The maximal repetition number in a regular expression has been
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on
64-bit).
Issue #9669: Protect re against infinite loops on zero-width matching in
non-greedy repeat.  Patch by Matthew Barnett.
Fix test_ssl by replacing expired X509 certificate
Remove unused certificate files
Fix issue #13169: Reimport MAXREPEAT into sre_constants.py.
Fix posixpath.realpath() for multiple pardirs (fixes issue #6975).
Issue #13153: Tkinter functions now raise TclError instead of ValueError when
a unicode argument contains non-BMP character.