Package buildslave :: Package monkeypatches
[frames] | no frames]

Source Code for Package buildslave.monkeypatches

 1  # This file is part of Buildbot.  Buildbot is free software: you can 
 2  # redistribute it and/or modify it under the terms of the GNU General Public 
 3  # License as published by the Free Software Foundation, version 2. 
 4  # 
 5  # This program is distributed in the hope that it will be useful, but WITHOUT 
 6  # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
 7  # FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more 
 8  # details. 
 9  # 
10  # You should have received a copy of the GNU General Public License along with 
11  # this program; if not, write to the Free Software Foundation, Inc., 51 
12  # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 
13  # 
14  # Copyright Buildbot Team Members 
15   
16   
17  import twisted 
18  from twisted.python import versions 
19   
20 -def patch_bug4881():
21 # this patch doesn't apply (or even import!) on Windows 22 import sys 23 if sys.platform == 'win32': 24 return 25 26 # this bug was only present in Twisted-10.2.0 27 if twisted.version == versions.Version('twisted', 10, 2, 0): 28 from buildslave.monkeypatches import bug4881 29 bug4881.patch()
30
31 -def patch_bug5079():
32 # this bug will hopefully be patched in Twisted-12.0.0 33 if twisted.version < versions.Version('twisted', 12, 0, 0): 34 from buildslave.monkeypatches import bug5079 35 bug5079.patch()
36
37 -def patch_all():
38 patch_bug4881()
39