Eclipse was flagging this up with a red error icon, which was making my eyes burn. But, on checking, I see that my Eclipse python grammar setting was 2.6 (for some reason I don't get a 2.7 option). No matter, I'll revert it to be the original line.