[PATCH] eng: Update the python template, add a shell template

Chris Johns chrisj at rtems.org
Tue Sep 1 07:05:54 UTC 2020


On 1/9/20 5:01 pm, Sebastian Huber wrote:
> On 01/09/2020 08:48, Chris Johns wrote:
>> On 1/9/20 4:44 pm, Sebastian Huber wrote:
>>> On 01/09/2020 08:15, Chris Johns wrote:
>>>> On 1/9/20 2:45 pm, Sebastian Huber wrote:
>>>>> All the examples in PEP 257 use """ strings. I used this style for all the new
>>>>> Python code in rtems-central. Could we use """ instead of '''?
>>>> Is this just for docstrings?
>>> I used "" for all strings. The reason was that the black Python formatter used
>>> this style:
>>>
>>> https://black.readthedocs.io/en/stable/
>>>
>> Hmm. All my existing code is '' and it is old and not worth changing or mixing.
>>
> 
> I am still in favour of using """ for the file scope docstring in the template.
> I didn't find such docstrings in rtems-tools and rtems-source-builder.

Yes this is fine with me. I did push some code today with the single quotes but
that can be updated when ever.

Chris


More information about the devel mailing list