apply patch from adiroiban. refs #7000

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/twisted-web-pyflakes-7000-2@43345 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb