Both political and military expediency were factors in the return of the French capital to its people.