Remove elif branch in __dumps