Python 2.6 compatibility

refs #7663


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/banana-unsupported-type-exception-7663@43212 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb