I think it's fine to have the `\n` left in -- it certainly improves the output.  Maybe the middle ground is to also put the string breaks in the same place, eg:

```
raise AttributeError(
    "%s\n"
    "Figure.show works only for figures managed by pyplot,\n"
    "normally created by pyplot.figure()." % err)
```