[libvirt] [PATCH 08/22] esx_vi_generator: Simplify alignment function

Daniel P. Berrangé berrange at redhat.com
Mon Mar 19 10:46:15 UTC 2018


On Sat, Mar 17, 2018 at 02:23:26PM +0000, Radostin Stoyanov wrote:
> Generate whitespace using the standard function ljust() that is
> available in both Py3 [1] and Py2 [2].
> 
> 1: https://docs.python.org/3/library/stdtypes.html?highlight=strip#str.ljust
> 2: https://docs.python.org/2.7/library/string.html#string.ljust
> 
> Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
> ---
>  src/esx/esx_vi_generator.py | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list