1
Fork 0

don't try to fix PB on old Twisted versions

This commit is contained in:
Dustin J. Mitchell 2014-04-19 21:59:51 -04:00
parent e2beb82dbc
commit 8722357297
1 changed files with 4 additions and 0 deletions

View File

@ -13,12 +13,16 @@
#
# Copyright Buildbot Team Members
from twisted import version
from twisted.python import log
from twisted.python import versions
from twisted.spread import pb
from twisted.spread.interfaces import IJellyable
def patch():
if version < versions.Version('twisted', 8, 2, 0):
return # too old
log.msg("Applying patch for http://twistedmatrix.com/trac/ticket/5079")
if not hasattr(pb, '_JellyableAvatarMixin'):
log.msg("..patch not applicable; please file a bug at buildbot.net")