Replace "foo!r" to "repr(foo)" syntax #29886
xref #29886 
Fixed the remaining files in:

Replace "foo!r" to "repr(foo)" syntax #29886



Does this close the issue mentioned in the OP? @willayd, the OP requested that a unit test be implemented as well.  This has not been done yet Thanks!