1940. The sublessee of a dwelling is not entitled to maintain occupancy.
The sublease terminates not later than the date on which the lease of the dwelling terminates; however, the sublessee is not required to vacate the premises before receiving notice of 10 days to that effect from the sublessor or, failing him, from the principal lessor.