[Libguestfs] Uneeded []?

Nir Soffer nsoffer at redhat.com
Sun Aug 5 13:25:47 UTC 2018


Looking in recent patch:

Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Fri Aug 3 12:00:01 2018 +0100

    v2v: python_script: Use correct syntax for array slices in
documentation.

    Fixes commit 3d4df397320e8e86932f0b0b4d100644eefc99b4.

diff --git a/v2v/python_script.mli b/v2v/python_script.mli
index e30917833..cf137b142 100644
--- a/v2v/python_script.mli
+++ b/v2v/python_script.mli
@@ -44,7 +44,7 @@ with open(sys.argv[1], 'r') as fp:
 v}

     The extra arguments, if any, are passed verbatim on the
-    script command line in [sys.argv[2..]].
+    script command line in [sys.argv[2:]].

If the slice should be python syntax, it cab be:

    script command line in sys.argv[2:].

Nir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20180805/1ce487e4/attachment.htm>


More information about the Libguestfs mailing list