def checkWeb(self):
    allowedAttributes              = {}
    allowedAttributes['authors']   = (list, False)
    allowedAttributes['citations'] = (list, False)
    allowedAttributes['emails']    = (list, False)
    allowedAttributes['papers']    = (list, False)
    allowedAttributes['tool']      = (list, False)
    allowedAttributes['web_pages'] = (list, False)

    # If web information was provided, ensure that only valid fields were provided
    for field in self.webPage:
      if allowedAttributes not in field:
        if self.allowTermination: print('ERROR - toolConfiguration - checkWeb', field); exit(1)
        else: return False

    # Return True if this was successfully parsed.
    return True

  # Check that required attributes combinations are available. For example, if the 'is filename stub'
  # attribute is set, the stub extensions field must also be present.
dataset/ETHPy150Open gkno/gkno_launcher/src/gkno/toolConfiguration.py/toolConfiguration.checkWeb/swapped operands of `not in`