como se separar de um charecter tfrm específico no final da string

print x.rpartition('-')[0]
Inquisitive Ibex