Deductions & credits

Thanks. I followed your link and see Real Property on the left side of Pub 551 and click on it.  However, I cannot locate in the pub where it says repairs, painting, etc., which are referenced in the original question, can be be treated either as selling expenses or added to basis.  Most of the responses to this question state either treatment is allowable but do not provide a citation.  So if you have a specific section of Pub 551, or a different citation where it states either treatment is allowable, could you please provide it.  Or are you saying repairs, painting, etc. made to an inherited non-rental home that is investment property cannot be treated as selling expenses nor added to basis?  Thank you.