Patch #1504073: Fix tarfile.open() for mode "r" with a fileobj argument.

Backport from rev. 53161.
3 files changed