jhenderson added inline comments.

================
Comment at: llvm/utils/lit/lit/Test.py:217
+                for line in time_file.readlines():
+                    time, path = line.split(' ', 1)
+                    self.test_times[path.strip('\n')] = float(time)
----------------
jhenderson wrote:
> You an probably omit the first argument here, as demonstrated. That will 
> split on the first sequence of whitespace.
There's a typo in my example: it should be `maxsplit=1` (with the `s`). You 
need to use the argument name as shown. Example usage from my local python 
instance:
```
>>> s = '123 456 789'
>>> s.split(maxsplit=1)
['123', '456 789']
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98179/new/

https://reviews.llvm.org/D98179

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

Reply via email to