Issue #20245: The open functions in the tarfile module now correctly handle empty mode.