applying patch from moijes12, refs #6395

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/deprecate-msn-6395@43364 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb