Original report by ato2g-andrew on Launchpad:
See attached program for a trivial example of a common idiom:
"my special string %(with_a_variable)s"%locals()
I wouldn't expect pyflakes to know how to deal with an arbitrary dictionary in the right hand position, but the use of locals() means that certain variables are actually used!