I think there should be "{!r}" instead of "{:r}".