Author: jdevlieghere
Date: Wed Aug 28 10:06:26 2019
New Revision: 370231

URL: http://llvm.org/viewvc/llvm-project?rev=370231&view=rev
Log:
[dotest] Don't spend time replacing spaces in print output.

Replacing all spaces with dashes seems like a lot of needless work for a
string that's just printed.

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/dotest.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/dotest.py
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/dotest.py?rev=370231&r1=370230&r2=370231&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/dotest.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/dotest.py Wed Aug 28 10:06:26 2019
@@ -1274,14 +1274,6 @@ def run_suite():
     configString = "arch=%s compiler=%s" % (configuration.arch,
                                             configuration.compiler)
 
-    # Translate ' ' to '-' for pathname component.
-    if six.PY2:
-        import string
-        tbl = string.maketrans(' ', '-')
-    else:
-        tbl = str.maketrans(' ', '-')
-    configPostfix = configString.translate(tbl)
-
     # Output the configuration.
     if configuration.verbose:
         sys.stderr.write("\nConfiguration: " + configString + "\n")


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

Reply via email to