def patch_gatherResults(): if twisted.version < versions.Version('twisted', 11, 1, 0): from buildbot.monkeypatches import gatherResults gatherResults.patch()