[Lldb-commits] [lldb] r370231 - [dotest] Don't spend time replacing spaces in print output.
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 28 10:06:26 PDT 2019
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")
More information about the lldb-commits
mailing list