From 8f5fd1ddc29184c0210e6d8051d901771e59829c Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Wed, 1 Aug 2018 03:08:10 +0100 Subject: [PATCH] 6.4.1 --- CMakeLists.txt | 2 +- packages/python/pyio.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 70b1c797e..f74d6cc0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -374,7 +374,7 @@ set(YAP_FOUND ON) set(YAP_MAJOR_VERSION 6) set(YAP_MINOR_VERSION 4) -set(YAP_PATCH_VERSION 0) +set(YAP_PATCH_VERSION 1) set(YAP_FULL_VERSION ${YAP_MAJOR_VERSION}.${YAP_MINOR_VERSION}.${YAP_PATCH_VERSION}) diff --git a/packages/python/pyio.c b/packages/python/pyio.c index 1812b5774..d5033b862 100644 --- a/packages/python/pyio.c +++ b/packages/python/pyio.c @@ -134,9 +134,9 @@ static bool pygetLine(StreamDesc *rl_iostream, int sno) { PyObject *user_line; StreamDesc *s = YAP_GetStreamFromId(sno); //term_t tg = python_acquire_GIL(); - if (1) { //!strcmp(RepAtom(s->name)->StrOfAE,"input")) { + if (!strcmp(RepAtom(s->name)->StrOfAE,"input") && ) { // note that input may change - PyObject *pystream = PyDict_GetItemString( Py_B``, "input"); + PyObject *pystream = PyDict_GetItemString( Py_Builtins, "input"); if (pystream == NULL) { if ((err = PyErr_Occurred())) { PyErr_Print();