Re-instate Py3 compatible syntax from r42211

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/logfile-umask-7026@43414 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb