From ed474f1d65bb10cca814703e42a51803e53d6b95 Mon Sep 17 00:00:00 2001 From: "Felix C. Stegerman" Date: Fri, 17 Jul 2020 23:40:17 +0200 Subject: [PATCH] LogFile: rename .buffer (to fix newer flask/click) --- .../bootstraps/common/build/jni/application/src/start.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pythonforandroid/bootstraps/common/build/jni/application/src/start.c b/pythonforandroid/bootstraps/common/build/jni/application/src/start.c index f57098069f..ce5a9caae1 100644 --- a/pythonforandroid/bootstraps/common/build/jni/application/src/start.c +++ b/pythonforandroid/bootstraps/common/build/jni/application/src/start.c @@ -226,13 +226,13 @@ int main(int argc, char *argv[]) { PyRun_SimpleString( "class LogFile(object):\n" " def __init__(self):\n" - " self.buffer = ''\n" + " self.__buffer = ''\n" " def write(self, s):\n" - " s = self.buffer + s\n" + " s = self.__buffer + s\n" " lines = s.split(\"\\n\")\n" " for l in lines[:-1]:\n" " androidembed.log(l)\n" - " self.buffer = lines[-1]\n" + " self.__buffer = lines[-1]\n" " def flush(self):\n" " return\n" "sys.stdout = sys.stderr = LogFile()\n"