Author: davide
Date: Mon Feb 18 13:53:02 2019
New Revision: 354286

URL: http://llvm.org/viewvc/llvm-project?rev=354286&view=rev
Log:
[Python3] Fix TestObjCMethods.py to work with py2 and 3.

Modified:
    
lldb/trunk/packages/Python/lldbsuite/test/lang/objc/foundation/TestObjCMethods.py

Modified: 
lldb/trunk/packages/Python/lldbsuite/test/lang/objc/foundation/TestObjCMethods.py
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lang/objc/foundation/TestObjCMethods.py?rev=354286&r1=354285&r2=354286&view=diff
==============================================================================
--- 
lldb/trunk/packages/Python/lldbsuite/test/lang/objc/foundation/TestObjCMethods.py
 (original)
+++ 
lldb/trunk/packages/Python/lldbsuite/test/lang/objc/foundation/TestObjCMethods.py
 Mon Feb 18 13:53:02 2019
@@ -317,7 +317,7 @@ class FoundationTestCase(TestBase):
             lines = f.readlines()
             num_errors = 0
             for line in lines:
-                if string.find(line, "$__lldb") != -1:
+                if "$__lldb" in line:
                     if num_errors == 0:
                         print(
                             "error: found spurious name lookups when 
evaluating an expression:")


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to