[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] Uneeded []?



Looking in recent patch:

Author: Richard W.M. Jones <rjones 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]