Redo BinTableHDU._binary_table_byte_swap as a context manager, which makes some of the code a little cleaner.  The context manager also makes sure to apply a new dtype to the data while it's byteswapped (turns out this fix is less necessary than I thought it was, but I still think the end result is nicer)
Redo BinTableHDU._binary_table_byte_swap as a context manager, which makes some of the code a little cleaner.  The context manager also makes sure to apply a new dtype to the data while it's byteswapped (turns out this fix is less necessary than I thought it was, but I still think the end result is nicer)

dhomeier/astropy,dhomeier/astropy,joergdietrich/astropy,StuartLittlefair/astropy,funbaker/astropy,aleksandr-bakanov/astropy,saimn/astropy,lpsinger/astropy,larrybradley/astropy,joergdietrich/astropy,tbabej/astropy,StuartLittlefair/astropy,joergdietrich/astropy,joergdietrich/astropy,pllim/astropy,lpsinger/astropy,lpsinger/astropy,MSeifert04/astropy,MSeifert04/astropy,kelle/astropy,mhvk/astropy,mhvk/astropy,aleksandr-bakanov/astropy,StuartLittlefair/astropy,StuartLittlefair/astropy,AustereCuriosity/astropy,larrybradley/astropy,kelle/astropy,mhvk/astropy,DougBurke/astropy,stargaser/astropy,DougBurke/astropy,kelle/astropy,bsipocz/astropy,MSeifert04/astropy,dhomeier/astropy,MSeifert04/astropy,mhvk/astropy,lpsinger/astropy,dhomeier/astropy,joergdietrich/astropy,funbaker/astropy,AustereCuriosity/astropy,stargaser/astropy,astropy/astropy,pllim/astropy,pllim/astropy,larrybradley/astropy,tbabej/astropy,saimn/astropy,kelle/astropy,astropy/astropy,kelle/astropy,saimn/astropy,tbabej/astropy,AustereCuriosity/astropy,AustereCuriosity/astropy,StuartLittlefair/astropy,stargaser/astropy,tbabej/astropy,DougBurke/astropy,aleksandr-bakanov/astropy,stargaser/astropy,saimn/astropy,funbaker/astropy,larrybradley/astropy,pllim/astropy,AustereCuriosity/astropy,aleksandr-bakanov/astropy,bsipocz/astropy,saimn/astropy,lpsinger/astropy,mhvk/astropy,astropy/astropy,astropy/astropy,larrybradley/astropy,tbabej/astropy,pllim/astropy,bsipocz/astropy,dhomeier/astropy,bsipocz/astropy,funbaker/astropy,astropy/astropy,DougBurke/astropy