[Piuparts-devel] get_files_owned_by_packages
Herbert Fortes
terberh at gmail.com
Fri May 17 19:23:28 BST 2019
On 5/15/19 2:50 AM, Niels Thykier wrote:
>> I suspect that something like:
>>
>> """
>> with open(path) as fd:
>> for line in fd:
>> ...
>> """
>>
>> Will be considerably faster if /var/.../info has a non-trivial size
>> (though I am unsure if the "basename" variable from your example can be
>> passed to open)
>>
Other people say the same. But to me 'timeit' does not
show this.
I liked anyway and did a commit for it in 'readlines_file'.
To write line.strip only once.
Regards,
Herbert
More information about the Piuparts-devel
mailing list