Do I put expenses from fixing up rental home,vacant 6 of 7 months on sch E as rental expense or cost of sale?

I rented out rental house in January and then spent 6 months fixing up and selling property while vacant.  Do I put the expenses for those 6 months on Schedule E as rental loss or as part of cost of sale?