code: def is_ansi_capable():
      ''' Check to see whether this version of Windows is recent enough to
          support "ANSI VT"" processing.
      '''
      BUILD_ANSI_AVAIL = 10586  # Win10 TH2
      CURRENT_VERS = sys.getwindowsversion()[:3]
  
      if CURRENT_VERS[2] > BUILD_ANSI_AVAIL:
          result = True
      else:
          result = False
      log.debug('version %s %s', CURRENT_VERS, result)
      return resulf is_ansi_capable():
      ''' Check to see whether this version of Windows is recent enough to
          support "ANSI VT"" processing.
      '''
      BUILD_ANSI_AVAIL = 10586  # Win10 TH2
      CURRENT_VERS = sys.getwindowsversion()[:3]
  
      if CURRENT_VERS[2] > BUILD_ANSI_AVAIL:
          result = True
      else:
          result = False
      log.debug('version %s %s', CURRENT_VERS, result)
      return result
docs: Check to see whether this version of Windows is recent enough to
          support "ANSI VT"" processing.