Masami HIRATA
2012-Aug-25 13:31 UTC
[Libguestfs] [PATCH] python: Fixed syntax errors in python/guestfs-py.c
Signed-off-by: Masami HIRATA <msmhrt at gmail.com> --- generator/generator_python.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/generator_python.ml b/generator/generator_python.ml index dc9cbca..b11df6e 100644 --- a/generator/generator_python.ml +++ b/generator/generator_python.ml @@ -391,7 +391,7 @@ free_strings (char **argv) pr " optargs_s.%s = PyString_AsString (py_%s);\n" n n; pr "#else\n"; pr " PyObject *bytes;\n"; - pr " bytes = PyUnicode_AsUTF8String (py_%s));\n" n; + pr " bytes = PyUnicode_AsUTF8String (py_%s);\n" n; pr " optargs_s.%s = PyBytes_AS_STRING (bytes);\n" n; pr "#endif\n"; | OStringList _ -> -- 1.7.9.6 (Apple Git-31.1)
Richard W.M. Jones
2012-Aug-25 14:55 UTC
[Libguestfs] [PATCH] python: Fixed syntax errors in python/guestfs-py.c
On Sat, Aug 25, 2012 at 10:31:29PM +0900, Masami HIRATA wrote:> > Signed-off-by: Masami HIRATA <msmhrt at gmail.com> > --- > generator/generator_python.ml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/generator/generator_python.ml b/generator/generator_python.ml > index dc9cbca..b11df6e 100644 > --- a/generator/generator_python.ml > +++ b/generator/generator_python.ml > @@ -391,7 +391,7 @@ free_strings (char **argv) > pr " optargs_s.%s = PyString_AsString (py_%s);\n" n n; > pr "#else\n"; > pr " PyObject *bytes;\n"; > - pr " bytes = PyUnicode_AsUTF8String (py_%s));\n" n; > + pr " bytes = PyUnicode_AsUTF8String (py_%s);\n" n; > pr " optargs_s.%s = PyBytes_AS_STRING (bytes);\n" n; > pr "#endif\n"; > | OStringList _ -> > --Ooops ... Thanks, I've applied it and will push this shortly. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
Maybe Matching Threads
- [PATCH v2] python: add simple wrappers for PyObject<->string functions
- [PATCH] Mac OS X: Fixed combination of running autogen.sh on Linux and building on Mac OS X
- [PATCH] python: add simple wrappers for PyObject<->string functions
- [PATCH 01/12] configure: Add -nographic command line option to qemu.
- [PATCH 1/2] Add type checking, support integers as value