Oh, I see why you were using the `\n` at the end. You are concatenating multiple things.

A better way to do this is something like

```python
error_message = "\n".join('File "%s" line %d has more than 80 characters" % (fn, line)
                                         for fn, line in format_infractions)
```