       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.firstNonWhitespaceIndex
          return [[lineNumber, 0], [lineNumber, offset]]
        if token.firstNonWhitespaceIndex != token.bufferDelta
          return [[lineNumber, 0], [lineNumber, offset + token.firstNonWhitespaceIndex]]
        offset += token.bufferDelta
    when 'E262', 'E265'

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