Except as provided in subsection (b), no deduction shall be allowed under this chapter to the partnership or to any partner for any amounts paid or incurred to organize a partnership or to promote the sale of (or to sell) an interest in such partnership.
In any case in which a partnership is liquidated before the end of the period to which paragraph (1)(B) applies, any deferred expenses attributable to the partnership which were not allowed as a deduction by reason of this section may be deducted to the extent allowable under section 165.