‘A code of conduct for politicians is like trying to teach a pig to sing opera’