#Python 3, 52 bytes

<!-- language-all: lang-py -->

    c='print(end="c=%r;exec(c)"%c);len(c)!=40<x';exec(c)

Switching to Python 3 so that the trailing newline can be easily removed.

I started out with a stupid structure that had 2 variables instead of 1, but switching to 1 variable only made it 4 bytes shorter.