       offset = 0
       for token in tokenizedLine.tokens
         if 'meta.function-call.python' in token.scopes
-          if token.value == 'locals'
+          if token.value is 'locals'
             return [[lineNumber, offset], [lineNumber, offset + token.bufferDelta]]
         offset += token.bufferDelta
     when 'W291'

      tokenizedLine = textEditor.tokenizedLineForScreenRow(lineNumber)
      offset = 0
      for token in tokenizedLine.tokens
        if token.value == symbol
          return [[lineNumber, offset], [lineNumber, offset + token.bufferDelta]]
        offset += token.bufferDelta
    when 'H101'

        foundDecorator = false
        for token in tokenizedLine.tokens
          if 'meta.function.python' in token.scopes
            if token.value is symbol
              return [[lineNumber, offset], [lineNumber, offset + token.bufferDelta]]
          if 'meta.function.decorator.python' in token.scopes
            foundDecorator = true
          offset += token.bufferDelta
        if not foundDecorator
          break
        lineNumber += 1
    when 'E125', 'E127', 'E128', 'E131'
