Fixes a bug when writing to a file-like object that doesn't have a mode attribute.  A more complete fix might use some simple heuristics to determine whether bytes or strings should be written to the file, but for now binary is a sensible assumption
Fixes a bug when writing to a file-like object that doesn't have a mode attribute.  A more complete fix might use some simple heuristics to determine whether bytes or strings should be written to the file, but for now binary is a sensible assumption

git-svn-id: 5305e2c1a78737cf7dd5f8f44e9bbbd00348fde7@982 ed100bfc-0583-0410-97f2-c26b58777a21

embray/PyFITS,embray/PyFITS,spacetelescope/PyFITS,spacetelescope/PyFITS,embray/PyFITS,embray/PyFITS