Bug 3411

https://gist.github.com/swierol/154e9576ea91a72fae12
repr(kwargs) is preferred over kwargs.__repr__() as is with every other Python magic method (e.g., str() > __str__()). In this case, str() works the same as repr() so you can omit the call altogether. Format() by default calls str() on objects.