def checkCompatibility(old, new, prefs=None, fix=True):
 if (old == new):
  return (1, '')
 if (old > new):
  (old, new) = (new, old)
 msg = ('From %s to %s:' % (old, new))
 warning = False
 if (old[0:4] < '1.74'):
  msg += '\n\nThere were many changes in version 1.74.00 that will break\ncompatibility with older versions. Make sure you read the changelog carefully\nbefore using this version. Do not upgrade to this version halfway through an experiment.\n'
  if (fix and ('PatchComponent' not in prefs.builder['hiddenComponents'])):
   prefs.builder['hiddenComponents'].append('PatchComponent')
  warning = True
 if (not warning):
  msg += '\nNo known compatibility issues'
 return ((not warning), msg)

def checkCompatibility ( old , new , prefs = None , fix = True ) : if ( old == new ) : return ( 1 , '' ) if ( old > new ) : ( old , new ) = ( new , old ) msg = ( 'From %s to %s:' % ( old , new ) ) warning = False if ( old [ 0 : 4 ] < '1.74' ) : msg += '\n\nThere were many changes in version 1.74.00 that will break\ncompatibility with older versions. Make sure you read the changelog carefully\nbefore using this version. Do not upgrade to this version halfway through an experiment.\n' if ( fix and ( 'PatchComponent' not in prefs . builder [ 'hiddenComponents' ] ) ) : prefs . builder [ 'hiddenComponents' ] . append ( 'PatchComponent' ) warning = True if ( not warning ) : msg += '\nNo known compatibility issues' return ( ( not warning ) , msg )
check for known compatibility issue between a pair of versions and fix automatically if possible .