esheldon/fitsio — pull request #3 by montefra (2012-12-17 21:27:45+00:00)
Title: if filename is a file object, fitslib.extract_filename gets the file nam...

...e string.

can be useful when, e.g., input and/or output file names are opened for checks (e.g. argparse.FileType)