bundles / astropy latest / astropy / io / fits / util / fileobj_closed
function
astropy.io.fits.util:fileobj_closed
source: /astropy/io/fits/util.py :374
Signature
def fileobj_closed ( f ) Summary
Returns True if the given file-like object is closed or if f is a string (and assumed to be a pathname).
Extended Summary
Returns False for all other types of objects, under the assumption that they are file-like objects with no sense of a 'closed' state.
Aliases
-
astropy.io.fits.convenience.fileobj_closed