SyntaxWarning in compile indicates invalid input
Merge pull request #6935 from minrk/syntaxwarning

SyntaxWarning in compile indicates invalid input