[gnome-builder/wip/commands] commands: use Py_eval_input to get the result from PyRun_String().



commit d04aa9389da484a9a64eb8a69cdd4da659407234
Author: Christian Hergert <christian hergert me>
Date:   Tue Oct 7 19:14:43 2014 -0700

    commands: use Py_eval_input to get the result from PyRun_String().

 src/commands/gb-python-command.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/commands/gb-python-command.c b/src/commands/gb-python-command.c
index c68f243..adae387 100644
--- a/src/commands/gb-python-command.c
+++ b/src/commands/gb-python-command.c
@@ -88,7 +88,7 @@ gb_python_command_execute (GbCommand   *command,
 
   locals = PyDict_New ();
 
-  if ((ret = PyRun_String (priv->command_text, Py_single_input,
+  if ((ret = PyRun_String (priv->command_text, Py_eval_input,
                            PyEval_GetBuiltins (), locals)))
     {
       if (!PyString_Check (ret))


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