Home Sale Expenses

Are the following two expenses incurred in the sale of a primary home qualified home sale expenses:

 

1. The satisfaction of a lien placed by a local municipality that included a fine and a repair (resodding of the lawn in this case) in order to provide clear title.

 

2.  The upgrade of a home feature (electrical panel and wiring) to the current code requirement to enable the sale even though the existing panel and wring were fully functional and safe.

 

Thanks!