Re: [libvirt] [PATCH 17/22] apibuild: Simplify strip_lead_star()

2018-03-19 Thread Daniel P . Berrangé
On Sat, Mar 17, 2018 at 02:23:35PM +, Radostin Stoyanov wrote: > The method strip_lead_star() removes a single leading asterisk > character from a string by ignoring leading whitespace, otherwise it > returns the original string. > > This could be achieved with a single if-statement followed

[libvirt] [PATCH 17/22] apibuild: Simplify strip_lead_star()

2018-03-17 Thread Radostin Stoyanov
The method strip_lead_star() removes a single leading asterisk character from a string by ignoring leading whitespace, otherwise it returns the original string. This could be achieved with a single if-statement followed by replace. Signed-off-by: Radostin Stoyanov ---