[3.7] bpo-33947: dataclasses no longer can raise RecursionError in repr (GF9916) by miss-islington · Pull Request #9970 · python/cpython

@srinivasreddy @miss-islington

…9916)

The reprlib code was copied here instead of importing reprlib. I'm not sure if we really need to avoid the import, but since I expect dataclasses to be more common that reprlib, it seems wise. Plus, the code is small.
(cherry picked from commit dd13c88)

Co-authored-by: Srinivas  Thatiparthy (శ్రీనివాస్  తాటిపర్తి) <srinivasreddy@users.noreply.github.com>