-
Committer:
Colin Watson
-
Date:
2019-12-09 17:34:54 UTC
-
mto:
This revision was merged to the branch mainline in
revision
542.
-
Revision ID:
cjwatson@canonical.com-20191209173454-fdd8osl11iqwqcq6
Add whitespace around "<<", ">>", "+", "-", "*", "/", and "%" operators.
I ran into this when using flask-storm's RequestTracer, which uses sqlparse
to help it substitute parameters in its trace output; it was getting
confused because sqlparse parses "expr+%s" as "expr", "+%", "s" rather than
"expr", "+", "%s". Adding surrounding whitespace removes the ambiguity
here.