multiline KeyError msg python bug workaround (#18557)
authorStas Bekman <stas@stason.org>
Fri, 29 Mar 2019 13:48:53 +0000 (06:48 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 29 Mar 2019 14:04:20 +0000 (07:04 -0700)
commitc0a2452ffe1bf4202763bbfcafa5867461158de3
tree78c2f41ea5e977f2f7e4e75e0e7f82b235cbed5e
parent95d3825e48ad8eb6caab2374d831b4e76824dc25
multiline KeyError msg python bug workaround (#18557)

Summary:
make multiline KeyError msg readable by working around a python bug https://bugs.python.org/issue2651

discussion: https://github.com/pytorch/pytorch/issues/16647
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18557

Differential Revision: D14681086

Pulled By: soumith

fbshipit-source-id: acbd13a823302c854c3d364028ed414fd8ce6bc8
torch/utils/data/dataloader.py