[llvm] r187918 - [lit] Use list comprehensions instead of map().

Daniel Dunbar daniel at zuster.org
Wed Aug 7 15:43:30 PDT 2013


Just an oversight, will fix.

Thanks!
 - Daniel


On Wed, Aug 7, 2013 at 2:50 PM, Eli Bendersky <eliben at google.com> wrote:

>
>
>
> On Wed, Aug 7, 2013 at 2:43 PM, Daniel Dunbar <daniel at zuster.org> wrote:
>
>> Author: ddunbar
>> Date: Wed Aug  7 16:43:17 2013
>> New Revision: 187918
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=187918&view=rev
>> Log:
>> [lit] Use list comprehensions instead of map().
>>
>> Modified:
>>     llvm/trunk/utils/lit/lit/LitConfig.py
>>     llvm/trunk/utils/lit/lit/TestRunner.py
>>     llvm/trunk/utils/lit/lit/__init__.py
>>
>> Modified: llvm/trunk/utils/lit/lit/LitConfig.py
>> URL:
>> http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/LitConfig.py?rev=187918&r1=187917&r2=187918&view=diff
>>
>> ==============================================================================
>> --- llvm/trunk/utils/lit/lit/LitConfig.py (original)
>> +++ llvm/trunk/utils/lit/lit/LitConfig.py Wed Aug  7 16:43:17 2013
>> @@ -32,7 +32,7 @@ class LitConfig:
>>          # The name of the test runner.
>>          self.progname = progname
>>          # The items to add to the PATH environment variable.
>> -        self.path = list(map(str, path))
>> +        self.path = list([str(p) for p in path])
>>
>
> Here (and maybe elsewhere) - what is the purpose of the extra list() call?
>
> Eli
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130807/68a35841/attachment.html>


More information about the llvm-commits mailing list